Answers for "uninstall java ubuntu"

4

how to uninstall jdk java completely from ubuntu linux

#If you want to remove Openjdk only, execute the following command on terminal:
sudo apt-get remove openjdk*

#If you want to remove Openjdk along with dependencies, execute the following command on terminal:
sudo apt-get remove --auto-remove openjdk*

#If you want to remove Openjdk and it’s configuration files, execute the following command on terminal:
sudo apt-get purge openjdk*

#If you want to remove Openjdk along with dependencies and it’s configuration files, execute the following command on terminal:
sudo apt-get purge --auto-remove openjdk*
  
#don't forgive to give a thumbs up
Posted by: Guest on September-26-2021
0

linux remove java 11

sudo apt remove openjdk-11*
sudo apt remove icedtea*
Posted by: Guest on November-09-2020
0

uninstall java 11 linux

sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"
Posted by: Guest on August-03-2020
1

How to remove java from ubuntu

dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common' | xargs sudo apt-get -y remove
sudo apt-get -y autoremove
Posted by: Guest on July-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language