I have installed leiningen using this script. How can I uninstall it?
I tried this SO solution but it says self-install
is deprecated.
I have installed leiningen using this script. How can I uninstall it?
I tried this SO solution but it says self-install
is deprecated.
The script has some helpful comments at the start:
So to uninstall it, in theory you only need remove that directory
assuming you did not run the script as root.
If you might want to reinstall the program in the future, you can keep the script; since it's in a path location, typing
lein
would cause the script to be run again, reinstalling the software. If you don't want this to happen, delete the script itself (rm ~/bin/lein
assuming that is the path to it) or remove execute permission from it (chmod -x ~/bin/lein
).If you are trying to remove Lein to change the version that you are using because you are running into an issue similar to the one described here on GitHub then remove Lein as mentioned by Zanna:
Update the version of Lein to the one you need in the
lein
script (the one you downloaded from the lein site possibly under~/bin/lein
):Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).
Install Lein again by running:
Confirm all is in order by trying to run the repl:
If you get something similar to the following you have successfully installed Lein:
1) Find where did you place this executable and delete it:
2) Remove lein cache/config folder