Uninstall default-jdk

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











up vote
4
down vote

favorite












I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:



java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


Now I did sudo apt-get purge default-jdk. Result:



java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


Why is OpenJDK still there?










share|improve this question







New contributor




Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    4
    down vote

    favorite












    I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:



    java --version
    openjdk 10.0.2 2018-07-17
    OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
    OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


    Now I did sudo apt-get purge default-jdk. Result:



    java --version
    openjdk 10.0.2 2018-07-17
    OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
    OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


    Why is OpenJDK still there?










    share|improve this question







    New contributor




    Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:



      java --version
      openjdk 10.0.2 2018-07-17
      OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
      OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


      Now I did sudo apt-get purge default-jdk. Result:



      java --version
      openjdk 10.0.2 2018-07-17
      OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
      OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


      Why is OpenJDK still there?










      share|improve this question







      New contributor




      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm on a fresh Ubuntu 18.04 install. I did a sudo apt-get install default-jdk. Result:



      java --version
      openjdk 10.0.2 2018-07-17
      OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
      OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


      Now I did sudo apt-get purge default-jdk. Result:



      java --version
      openjdk 10.0.2 2018-07-17
      OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
      OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)


      Why is OpenJDK still there?







      openjdk default






      share|improve this question







      New contributor




      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 48 mins ago









      Robert

      211




      211




      New contributor




      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          default-jdk in 18.04 has the following description:



          Description: Standard Java or Java compatible Development Kit
          This dependency package points to the Java runtime, or Java compatible
          development kit recommended for this architecture, which is
          openjdk-11-jdk for amd64.


          The results of apt-cache depends default-jdk are as follows:



          default-jdk
          Depends: default-jre
          Depends: default-jdk-headless
          Depends: openjdk-11-jdk


          The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.



          The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:



          sudo apt remove openjdk-11-jdk





          share|improve this answer






















          • Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
            – Android Dev
            21 mins ago











          • @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
            – karel
            7 mins ago










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Robert is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076027%2funinstall-default-jdk%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote













          default-jdk in 18.04 has the following description:



          Description: Standard Java or Java compatible Development Kit
          This dependency package points to the Java runtime, or Java compatible
          development kit recommended for this architecture, which is
          openjdk-11-jdk for amd64.


          The results of apt-cache depends default-jdk are as follows:



          default-jdk
          Depends: default-jre
          Depends: default-jdk-headless
          Depends: openjdk-11-jdk


          The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.



          The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:



          sudo apt remove openjdk-11-jdk





          share|improve this answer






















          • Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
            – Android Dev
            21 mins ago











          • @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
            – karel
            7 mins ago














          up vote
          4
          down vote













          default-jdk in 18.04 has the following description:



          Description: Standard Java or Java compatible Development Kit
          This dependency package points to the Java runtime, or Java compatible
          development kit recommended for this architecture, which is
          openjdk-11-jdk for amd64.


          The results of apt-cache depends default-jdk are as follows:



          default-jdk
          Depends: default-jre
          Depends: default-jdk-headless
          Depends: openjdk-11-jdk


          The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.



          The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:



          sudo apt remove openjdk-11-jdk





          share|improve this answer






















          • Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
            – Android Dev
            21 mins ago











          • @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
            – karel
            7 mins ago












          up vote
          4
          down vote










          up vote
          4
          down vote









          default-jdk in 18.04 has the following description:



          Description: Standard Java or Java compatible Development Kit
          This dependency package points to the Java runtime, or Java compatible
          development kit recommended for this architecture, which is
          openjdk-11-jdk for amd64.


          The results of apt-cache depends default-jdk are as follows:



          default-jdk
          Depends: default-jre
          Depends: default-jdk-headless
          Depends: openjdk-11-jdk


          The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.



          The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:



          sudo apt remove openjdk-11-jdk





          share|improve this answer














          default-jdk in 18.04 has the following description:



          Description: Standard Java or Java compatible Development Kit
          This dependency package points to the Java runtime, or Java compatible
          development kit recommended for this architecture, which is
          openjdk-11-jdk for amd64.


          The results of apt-cache depends default-jdk are as follows:



          default-jdk
          Depends: default-jre
          Depends: default-jdk-headless
          Depends: openjdk-11-jdk


          The results of apt-cache rdepends default-jdk show that openjdk-11-jdk does not depend on default-jdk. default-jdk points to a Java runtime or Java compatible development kit, but uninstalling default-jdk does not uninstall either of these packages.



          The name of the package installed by default-jdk is openjdk-11-jdk. To remove it, run the following command:



          sudo apt remove openjdk-11-jdk






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 mins ago

























          answered 42 mins ago









          karel

          50.7k11107127




          50.7k11107127











          • Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
            – Android Dev
            21 mins ago











          • @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
            – karel
            7 mins ago
















          • Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
            – Android Dev
            21 mins ago











          • @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
            – karel
            7 mins ago















          Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
          – Android Dev
          21 mins ago





          Since default-jdk depends on openjdk-11-jdk, then wouldn't removing default-jdk followed by a sudo apt-get autoremove accomplish the same?
          – Android Dev
          21 mins ago













          @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
          – karel
          7 mins ago




          @AndroidDev I replied to your comment by editing my answer. My reply is in the 5th paragraph.
          – karel
          7 mins ago










          Robert is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Robert is a new contributor. Be nice, and check out our Code of Conduct.












          Robert is a new contributor. Be nice, and check out our Code of Conduct.











          Robert is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1076027%2funinstall-default-jdk%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          White Anglo-Saxon Protestant

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          One-line joke