Lektor: How can I remove lektor in the best way? Feature request

Created on 15 Jun 2018  路  4Comments  路  Source: lektor/lektor

HI fellows
How can I remove Lektor? should I delete its files manually ?
I've installed it via curl command.
Thanks

All 4 comments

First save the install script locally:
curl -sf https://www.getlektor.com/install.sh > install_lektor.sh

Then in that script comment out the last portion where it installs the new version. Comment out everything after check_installation()

    def main():
        print('')
        print('Welcome to Lektor')
        print('')
        print('This script will install Lektor on your computer.')
        print('')

        paths = find_user_paths()
        if not paths:
            fail('None of the items in $PATH are writable. Run with '
                 'sudo or add a $PATH item that you have access to.')

        bin_dir, lib_dir = find_locations(paths)
        if bin_dir is None or lib_dir is None:
            fail('Could not determine installation location for Lektor.')

        check_installation(lib_dir, bin_dir)
        # ^^^^ this function will wipe out the current installation if it exists ^^^^

        # print('Installing at:')
        # print('  bin: %s' % bin_dir)
        # print('  app: %s' % lib_dir)
        # print('')

        # if prompt: get_confirmation()

        # for url in json.loads(urlopen(VENV_URL).read().decode('utf-8'))['urls']:
        #     if url['python_version'] == 'source':
        #         virtualenv = url['url']
        #         break
        # else:
        #     fail('Could not find virtualenv')

        # install(virtualenv, lib_dir, bin_dir)

        # print('')
        # print('All done!')

Thanks dude, but my main goal was something like feature request. I think that makes sense. when you can install something you should also be enable to remove it.right ?

I agree with the feature request (being able to remove via the install script), and want some related changes to the install scripts. That code is in the lektor-website repo. I've made a new ticket over there to track this instead of here. I'll close this then. The new ticket is here https://github.com/lektor/lektor-website/issues/228

Thanks!

Thanks Joseph

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nixjdm picture nixjdm  路  8Comments

nimishbongale picture nimishbongale  路  6Comments

svandragt picture svandragt  路  4Comments

DanielKehoe picture DanielKehoe  路  10Comments

runfalk picture runfalk  路  9Comments