How to uninstall java on Linux Mint 12

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Today, I downloaded the latest java jre which is a .bin file



By mistake, I installed it on my desktop by running ./jre. I want to remove this installation, move the .bin file to somewhere else and install it again



I tried sudo apt-get remove --purge jre gives



Reading package lists... Done
Building dependency tree
Reading state information... Done
Virtual packages like 'jre' can't be removed
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.


Note: I can't use synaptic package manager, here's why, so I have to do everything from the terminal until the problem gets fixed.



The folder where the JRE is located is called jre.



Edit: @stew



just installed java jre



sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
sudo apt-get update
sudo apt-get install update-sun-jre


it's the latest version. so i just have now to remove the .bin file and the extracted jre folder, would your method still works?



Why to use open jdk over jre?










share|improve this question






























    1















    Today, I downloaded the latest java jre which is a .bin file



    By mistake, I installed it on my desktop by running ./jre. I want to remove this installation, move the .bin file to somewhere else and install it again



    I tried sudo apt-get remove --purge jre gives



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Virtual packages like 'jre' can't be removed
    0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.


    Note: I can't use synaptic package manager, here's why, so I have to do everything from the terminal until the problem gets fixed.



    The folder where the JRE is located is called jre.



    Edit: @stew



    just installed java jre



    sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
    sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
    sudo apt-get update
    sudo apt-get install update-sun-jre


    it's the latest version. so i just have now to remove the .bin file and the extracted jre folder, would your method still works?



    Why to use open jdk over jre?










    share|improve this question


























      1












      1








      1








      Today, I downloaded the latest java jre which is a .bin file



      By mistake, I installed it on my desktop by running ./jre. I want to remove this installation, move the .bin file to somewhere else and install it again



      I tried sudo apt-get remove --purge jre gives



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Virtual packages like 'jre' can't be removed
      0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.


      Note: I can't use synaptic package manager, here's why, so I have to do everything from the terminal until the problem gets fixed.



      The folder where the JRE is located is called jre.



      Edit: @stew



      just installed java jre



      sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
      sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
      sudo apt-get update
      sudo apt-get install update-sun-jre


      it's the latest version. so i just have now to remove the .bin file and the extracted jre folder, would your method still works?



      Why to use open jdk over jre?










      share|improve this question
















      Today, I downloaded the latest java jre which is a .bin file



      By mistake, I installed it on my desktop by running ./jre. I want to remove this installation, move the .bin file to somewhere else and install it again



      I tried sudo apt-get remove --purge jre gives



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Virtual packages like 'jre' can't be removed
      0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.


      Note: I can't use synaptic package manager, here's why, so I have to do everything from the terminal until the problem gets fixed.



      The folder where the JRE is located is called jre.



      Edit: @stew



      just installed java jre



      sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
      sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
      sudo apt-get update
      sudo apt-get install update-sun-jre


      it's the latest version. so i just have now to remove the .bin file and the extracted jre folder, would your method still works?



      Why to use open jdk over jre?







      apt software-installation linux-mint java






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 9 at 14:33









      Rui F Ribeiro

      41.9k1483142




      41.9k1483142










      asked Feb 16 '12 at 22:30









      LynobLynob

      1,431112657




      1,431112657




















          2 Answers
          2






          active

          oldest

          votes


















          1














          I would first off discourage you from not using one of the java packages provided by mint unless you really need the oracle java instead of openjdk.



          I'd recommend you install your java .bin file before removing the packaged versions of java. After it is installed, you should use the equivs package in order to create a dummy .deb file you can install which will tell your package manager that you have a java-runtime. This dummy package should declare it Provides the following packages: java-runtime, java2-runtime, java5-runtime, java6-runtime java-compiler java-sdk java2-sdk java5-sdk java6-sdk and if it is java 7, then also java7-runtime java7-sdk. By doing this, you will be able to still install packages depending on a java runtime using apt-get/aptitude/synaptic/whatever.



          Find help on equivs here and here



          Then you can remove all of the various -jre (such as openjdk-7-jre) packages will declare Provides: java-runtime, and all the various -jdk packages will declare Provides java-compiler, so you can get rid of all these packaged versions with:



          aptitude remove '~Pjava-runtime' '~Pjava-compiler'





          share|improve this answer























          • please read my edit

            – Lynob
            Feb 18 '12 at 0:00











          • issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

            – Lynob
            Feb 18 '12 at 9:37



















          1














          A quick test with the .bin file obtained from http://jdk6.java.net/download.html shows that it unpacks to a new directory jre1.6.0_32 (this might vary) current directory; hence, removing the directory should work.



          As for apt-get not being able to remove it, because you installed from the .bin file, the install is not tracked by the package management system (apt/dpkg), thus apt-get will not solve your problem.



          Finally, software installed from .bin files or from sources other than the package management system is put in /opt. This is not a standard set in stone, but is what the FHS proposes.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f31885%2fhow-to-uninstall-java-on-linux-mint-12%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









            1














            I would first off discourage you from not using one of the java packages provided by mint unless you really need the oracle java instead of openjdk.



            I'd recommend you install your java .bin file before removing the packaged versions of java. After it is installed, you should use the equivs package in order to create a dummy .deb file you can install which will tell your package manager that you have a java-runtime. This dummy package should declare it Provides the following packages: java-runtime, java2-runtime, java5-runtime, java6-runtime java-compiler java-sdk java2-sdk java5-sdk java6-sdk and if it is java 7, then also java7-runtime java7-sdk. By doing this, you will be able to still install packages depending on a java runtime using apt-get/aptitude/synaptic/whatever.



            Find help on equivs here and here



            Then you can remove all of the various -jre (such as openjdk-7-jre) packages will declare Provides: java-runtime, and all the various -jdk packages will declare Provides java-compiler, so you can get rid of all these packaged versions with:



            aptitude remove '~Pjava-runtime' '~Pjava-compiler'





            share|improve this answer























            • please read my edit

              – Lynob
              Feb 18 '12 at 0:00











            • issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

              – Lynob
              Feb 18 '12 at 9:37
















            1














            I would first off discourage you from not using one of the java packages provided by mint unless you really need the oracle java instead of openjdk.



            I'd recommend you install your java .bin file before removing the packaged versions of java. After it is installed, you should use the equivs package in order to create a dummy .deb file you can install which will tell your package manager that you have a java-runtime. This dummy package should declare it Provides the following packages: java-runtime, java2-runtime, java5-runtime, java6-runtime java-compiler java-sdk java2-sdk java5-sdk java6-sdk and if it is java 7, then also java7-runtime java7-sdk. By doing this, you will be able to still install packages depending on a java runtime using apt-get/aptitude/synaptic/whatever.



            Find help on equivs here and here



            Then you can remove all of the various -jre (such as openjdk-7-jre) packages will declare Provides: java-runtime, and all the various -jdk packages will declare Provides java-compiler, so you can get rid of all these packaged versions with:



            aptitude remove '~Pjava-runtime' '~Pjava-compiler'





            share|improve this answer























            • please read my edit

              – Lynob
              Feb 18 '12 at 0:00











            • issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

              – Lynob
              Feb 18 '12 at 9:37














            1












            1








            1







            I would first off discourage you from not using one of the java packages provided by mint unless you really need the oracle java instead of openjdk.



            I'd recommend you install your java .bin file before removing the packaged versions of java. After it is installed, you should use the equivs package in order to create a dummy .deb file you can install which will tell your package manager that you have a java-runtime. This dummy package should declare it Provides the following packages: java-runtime, java2-runtime, java5-runtime, java6-runtime java-compiler java-sdk java2-sdk java5-sdk java6-sdk and if it is java 7, then also java7-runtime java7-sdk. By doing this, you will be able to still install packages depending on a java runtime using apt-get/aptitude/synaptic/whatever.



            Find help on equivs here and here



            Then you can remove all of the various -jre (such as openjdk-7-jre) packages will declare Provides: java-runtime, and all the various -jdk packages will declare Provides java-compiler, so you can get rid of all these packaged versions with:



            aptitude remove '~Pjava-runtime' '~Pjava-compiler'





            share|improve this answer













            I would first off discourage you from not using one of the java packages provided by mint unless you really need the oracle java instead of openjdk.



            I'd recommend you install your java .bin file before removing the packaged versions of java. After it is installed, you should use the equivs package in order to create a dummy .deb file you can install which will tell your package manager that you have a java-runtime. This dummy package should declare it Provides the following packages: java-runtime, java2-runtime, java5-runtime, java6-runtime java-compiler java-sdk java2-sdk java5-sdk java6-sdk and if it is java 7, then also java7-runtime java7-sdk. By doing this, you will be able to still install packages depending on a java runtime using apt-get/aptitude/synaptic/whatever.



            Find help on equivs here and here



            Then you can remove all of the various -jre (such as openjdk-7-jre) packages will declare Provides: java-runtime, and all the various -jdk packages will declare Provides java-compiler, so you can get rid of all these packaged versions with:



            aptitude remove '~Pjava-runtime' '~Pjava-compiler'






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 17 '12 at 12:27









            stewstew

            77156




            77156












            • please read my edit

              – Lynob
              Feb 18 '12 at 0:00











            • issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

              – Lynob
              Feb 18 '12 at 9:37


















            • please read my edit

              – Lynob
              Feb 18 '12 at 0:00











            • issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

              – Lynob
              Feb 18 '12 at 9:37

















            please read my edit

            – Lynob
            Feb 18 '12 at 0:00





            please read my edit

            – Lynob
            Feb 18 '12 at 0:00













            issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

            – Lynob
            Feb 18 '12 at 9:37






            issue fixed i guess, when i installed java, i then was able to delete the .bin file :)

            – Lynob
            Feb 18 '12 at 9:37














            1














            A quick test with the .bin file obtained from http://jdk6.java.net/download.html shows that it unpacks to a new directory jre1.6.0_32 (this might vary) current directory; hence, removing the directory should work.



            As for apt-get not being able to remove it, because you installed from the .bin file, the install is not tracked by the package management system (apt/dpkg), thus apt-get will not solve your problem.



            Finally, software installed from .bin files or from sources other than the package management system is put in /opt. This is not a standard set in stone, but is what the FHS proposes.






            share|improve this answer



























              1














              A quick test with the .bin file obtained from http://jdk6.java.net/download.html shows that it unpacks to a new directory jre1.6.0_32 (this might vary) current directory; hence, removing the directory should work.



              As for apt-get not being able to remove it, because you installed from the .bin file, the install is not tracked by the package management system (apt/dpkg), thus apt-get will not solve your problem.



              Finally, software installed from .bin files or from sources other than the package management system is put in /opt. This is not a standard set in stone, but is what the FHS proposes.






              share|improve this answer

























                1












                1








                1







                A quick test with the .bin file obtained from http://jdk6.java.net/download.html shows that it unpacks to a new directory jre1.6.0_32 (this might vary) current directory; hence, removing the directory should work.



                As for apt-get not being able to remove it, because you installed from the .bin file, the install is not tracked by the package management system (apt/dpkg), thus apt-get will not solve your problem.



                Finally, software installed from .bin files or from sources other than the package management system is put in /opt. This is not a standard set in stone, but is what the FHS proposes.






                share|improve this answer













                A quick test with the .bin file obtained from http://jdk6.java.net/download.html shows that it unpacks to a new directory jre1.6.0_32 (this might vary) current directory; hence, removing the directory should work.



                As for apt-get not being able to remove it, because you installed from the .bin file, the install is not tracked by the package management system (apt/dpkg), thus apt-get will not solve your problem.



                Finally, software installed from .bin files or from sources other than the package management system is put in /opt. This is not a standard set in stone, but is what the FHS proposes.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 17 '12 at 3:03









                RenanRenan

                14.6k65679




                14.6k65679



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f31885%2fhow-to-uninstall-java-on-linux-mint-12%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

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?