How to uninstall leiningen which was installed through the script?












5















I have installed leiningen using this script. How can I uninstall it?



I tried this SO solution but it says self-install is deprecated.










share|improve this question




















  • 1





    # Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

    – Zanna
    Apr 22 '17 at 7:30











  • ~/.lein/self-installs ?

    – Tarun Maganti
    Apr 22 '17 at 7:33











  • That Worked. You could write an answer

    – Tarun Maganti
    Apr 22 '17 at 7:37
















5















I have installed leiningen using this script. How can I uninstall it?



I tried this SO solution but it says self-install is deprecated.










share|improve this question




















  • 1





    # Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

    – Zanna
    Apr 22 '17 at 7:30











  • ~/.lein/self-installs ?

    – Tarun Maganti
    Apr 22 '17 at 7:33











  • That Worked. You could write an answer

    – Tarun Maganti
    Apr 22 '17 at 7:37














5












5








5


2






I have installed leiningen using this script. How can I uninstall it?



I tried this SO solution but it says self-install is deprecated.










share|improve this question
















I have installed leiningen using this script. How can I uninstall it?



I tried this SO solution but it says self-install is deprecated.







software-uninstall jvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 22 '17 at 7:46









Zanna

50.5k13133241




50.5k13133241










asked Apr 22 '17 at 7:25









Tarun MagantiTarun Maganti

1357




1357








  • 1





    # Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

    – Zanna
    Apr 22 '17 at 7:30











  • ~/.lein/self-installs ?

    – Tarun Maganti
    Apr 22 '17 at 7:33











  • That Worked. You could write an answer

    – Tarun Maganti
    Apr 22 '17 at 7:37














  • 1





    # Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

    – Zanna
    Apr 22 '17 at 7:30











  • ~/.lein/self-installs ?

    – Tarun Maganti
    Apr 22 '17 at 7:33











  • That Worked. You could write an answer

    – Tarun Maganti
    Apr 22 '17 at 7:37








1




1





# Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

– Zanna
Apr 22 '17 at 7:30





# Ensure this file is executable via chmod a+x lein, then place it # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be # installed upon first run into the ~/.lein/self-installs directory. So I guess you should delete that directory.

– Zanna
Apr 22 '17 at 7:30













~/.lein/self-installs ?

– Tarun Maganti
Apr 22 '17 at 7:33





~/.lein/self-installs ?

– Tarun Maganti
Apr 22 '17 at 7:33













That Worked. You could write an answer

– Tarun Maganti
Apr 22 '17 at 7:37





That Worked. You could write an answer

– Tarun Maganti
Apr 22 '17 at 7:37










2 Answers
2






active

oldest

votes


















4














The script has some helpful comments at the start:




# Ensure this file is executable via `chmod a+x lein`, then place it
# somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
# installed upon first run into the ~/.lein/self-installs directory.



So to uninstall it, in theory you only need remove that directory



rm -r ~/.lein


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).






share|improve this answer


























  • I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

    – Tarun Maganti
    Apr 22 '17 at 7:48











  • @TarunMaganti I edited to clarify that point, thanks :)

    – Zanna
    Apr 22 '17 at 7:54






  • 1





    If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

    – 8bitme
    Dec 14 '18 at 9:41













  • @8bitme great tip - you could post that as an answer I think...

    – Zanna
    Dec 14 '18 at 9:55



















1














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:



rm -r ~/.lein


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):



export LEIN_VERSION="2.8.2"


Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).



Install Lein again by running:



lein


Confirm all is in order by trying to run the repl:



lein repl


If you get something similar to the following you have successfully installed Lein:



 nREPL server started on port 50634 on host 127.0.0.1 - nrepl://127.0.0.1:50634
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=>





share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f907648%2fhow-to-uninstall-leiningen-which-was-installed-through-the-script%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    The script has some helpful comments at the start:




    # Ensure this file is executable via `chmod a+x lein`, then place it
    # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
    # installed upon first run into the ~/.lein/self-installs directory.



    So to uninstall it, in theory you only need remove that directory



    rm -r ~/.lein


    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).






    share|improve this answer


























    • I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

      – Tarun Maganti
      Apr 22 '17 at 7:48











    • @TarunMaganti I edited to clarify that point, thanks :)

      – Zanna
      Apr 22 '17 at 7:54






    • 1





      If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

      – 8bitme
      Dec 14 '18 at 9:41













    • @8bitme great tip - you could post that as an answer I think...

      – Zanna
      Dec 14 '18 at 9:55
















    4














    The script has some helpful comments at the start:




    # Ensure this file is executable via `chmod a+x lein`, then place it
    # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
    # installed upon first run into the ~/.lein/self-installs directory.



    So to uninstall it, in theory you only need remove that directory



    rm -r ~/.lein


    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).






    share|improve this answer


























    • I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

      – Tarun Maganti
      Apr 22 '17 at 7:48











    • @TarunMaganti I edited to clarify that point, thanks :)

      – Zanna
      Apr 22 '17 at 7:54






    • 1





      If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

      – 8bitme
      Dec 14 '18 at 9:41













    • @8bitme great tip - you could post that as an answer I think...

      – Zanna
      Dec 14 '18 at 9:55














    4












    4








    4







    The script has some helpful comments at the start:




    # Ensure this file is executable via `chmod a+x lein`, then place it
    # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
    # installed upon first run into the ~/.lein/self-installs directory.



    So to uninstall it, in theory you only need remove that directory



    rm -r ~/.lein


    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).






    share|improve this answer















    The script has some helpful comments at the start:




    # Ensure this file is executable via `chmod a+x lein`, then place it
    # somewhere on your $PATH, like ~/bin. The rest of Leiningen will be
    # installed upon first run into the ~/.lein/self-installs directory.



    So to uninstall it, in theory you only need remove that directory



    rm -r ~/.lein


    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).







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 22 '17 at 7:53

























    answered Apr 22 '17 at 7:43









    ZannaZanna

    50.5k13133241




    50.5k13133241













    • I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

      – Tarun Maganti
      Apr 22 '17 at 7:48











    • @TarunMaganti I edited to clarify that point, thanks :)

      – Zanna
      Apr 22 '17 at 7:54






    • 1





      If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

      – 8bitme
      Dec 14 '18 at 9:41













    • @8bitme great tip - you could post that as an answer I think...

      – Zanna
      Dec 14 '18 at 9:55



















    • I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

      – Tarun Maganti
      Apr 22 '17 at 7:48











    • @TarunMaganti I edited to clarify that point, thanks :)

      – Zanna
      Apr 22 '17 at 7:54






    • 1





      If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

      – 8bitme
      Dec 14 '18 at 9:41













    • @8bitme great tip - you could post that as an answer I think...

      – Zanna
      Dec 14 '18 at 9:55

















    I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

    – Tarun Maganti
    Apr 22 '17 at 7:48





    I would like to point out that if that script isn't removed, running lein in terminal will result in redownloading of the leiningen

    – Tarun Maganti
    Apr 22 '17 at 7:48













    @TarunMaganti I edited to clarify that point, thanks :)

    – Zanna
    Apr 22 '17 at 7:54





    @TarunMaganti I edited to clarify that point, thanks :)

    – Zanna
    Apr 22 '17 at 7:54




    1




    1





    If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

    – 8bitme
    Dec 14 '18 at 9:41







    If you are removing this as you want to install a different version of lein (to fix issues with 2.8.2 for example) then leave the script under ~/bin and change the line under LEIN_VERSION= to the version you need then run lein and lein repl to get up and running again

    – 8bitme
    Dec 14 '18 at 9:41















    @8bitme great tip - you could post that as an answer I think...

    – Zanna
    Dec 14 '18 at 9:55





    @8bitme great tip - you could post that as an answer I think...

    – Zanna
    Dec 14 '18 at 9:55













    1














    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:



    rm -r ~/.lein


    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):



    export LEIN_VERSION="2.8.2"


    Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).



    Install Lein again by running:



    lein


    Confirm all is in order by trying to run the repl:



    lein repl


    If you get something similar to the following you have successfully installed Lein:



     nREPL server started on port 50634 on host 127.0.0.1 - nrepl://127.0.0.1:50634
    REPL-y 0.3.7, nREPL 0.2.12
    Clojure 1.8.0
    Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13
    Docs: (doc function-name-here)
    (find-doc "part-of-name-here")
    Source: (source function-name-here)
    Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
    Results: Stored in vars *1, *2, *3, an exception in *e
    user=>





    share|improve this answer






























      1














      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:



      rm -r ~/.lein


      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):



      export LEIN_VERSION="2.8.2"


      Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).



      Install Lein again by running:



      lein


      Confirm all is in order by trying to run the repl:



      lein repl


      If you get something similar to the following you have successfully installed Lein:



       nREPL server started on port 50634 on host 127.0.0.1 - nrepl://127.0.0.1:50634
      REPL-y 0.3.7, nREPL 0.2.12
      Clojure 1.8.0
      Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13
      Docs: (doc function-name-here)
      (find-doc "part-of-name-here")
      Source: (source function-name-here)
      Javadoc: (javadoc java-object-or-class-here)
      Exit: Control+D or (exit) or (quit)
      Results: Stored in vars *1, *2, *3, an exception in *e
      user=>





      share|improve this answer




























        1












        1








        1







        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:



        rm -r ~/.lein


        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):



        export LEIN_VERSION="2.8.2"


        Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).



        Install Lein again by running:



        lein


        Confirm all is in order by trying to run the repl:



        lein repl


        If you get something similar to the following you have successfully installed Lein:



         nREPL server started on port 50634 on host 127.0.0.1 - nrepl://127.0.0.1:50634
        REPL-y 0.3.7, nREPL 0.2.12
        Clojure 1.8.0
        Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13
        Docs: (doc function-name-here)
        (find-doc "part-of-name-here")
        Source: (source function-name-here)
        Javadoc: (javadoc java-object-or-class-here)
        Exit: Control+D or (exit) or (quit)
        Results: Stored in vars *1, *2, *3, an exception in *e
        user=>





        share|improve this answer















        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:



        rm -r ~/.lein


        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):



        export LEIN_VERSION="2.8.2"


        Change this to the version you want (in my case changing this to 2.8.1 resolved the issue).



        Install Lein again by running:



        lein


        Confirm all is in order by trying to run the repl:



        lein repl


        If you get something similar to the following you have successfully installed Lein:



         nREPL server started on port 50634 on host 127.0.0.1 - nrepl://127.0.0.1:50634
        REPL-y 0.3.7, nREPL 0.2.12
        Clojure 1.8.0
        Java HotSpot(TM) 64-Bit Server VM 1.8.0_121-b13
        Docs: (doc function-name-here)
        (find-doc "part-of-name-here")
        Source: (source function-name-here)
        Javadoc: (javadoc java-object-or-class-here)
        Exit: Control+D or (exit) or (quit)
        Results: Stored in vars *1, *2, *3, an exception in *e
        user=>






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 14 '18 at 20:14









        Zanna

        50.5k13133241




        50.5k13133241










        answered Dec 14 '18 at 14:18









        8bitme8bitme

        1534




        1534






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f907648%2fhow-to-uninstall-leiningen-which-was-installed-through-the-script%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?