how to remove default-jre java installation from Ubuntu?

how to remove default-jre java installation from Ubuntu?

To completely remove jdk from your system, follow these below steps:

  1. Type sudo apt-get autoremove default-jdk openjdk- (Dont hit Enter right now).
  2. Now press tab button for 2 or 3 times, you will get list of packages
    starting with openjdk-.
  3. Look for name like openjdk-11-jdk. You need to get java version,
    here is 11.
  4. Now complete your command to sudo apt-get autoremove default-jdk
    openjdk-11-jdk
    . (Change 11 to your java version)
  5. And Hit Enter button.

Now you have done removing java from your system.

sudo apt-get remove default-jre

removes the package default-jre. all tho you should ask in askUbuntu

how to remove default-jre java installation from Ubuntu?

Bary12s answer worked for me:

sudo apt-get autoremove default-jre

Leave a Reply

Your email address will not be published. Required fields are marked *