Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

uninstall specific java openjdk ubuntu

#To Uninstall OpenJDK Ubuntu Java Runtime - Enter the below command on Ubuntu Terminal.
$ sudo apt-get remove openjdk*

#To Uninstall OpenJDK Ubuntu Java Runtime along with dependencies - Enter the below command on Ubuntu Terminal.
$ sudo apt-get remove --auto-remove openjdk*

#To Uninstall OpenJDK Ubuntu Java Runtime along with dependencies and configurations - Enter the below command on Ubuntu Terminal.
$ sudo apt-get purge --auto-remove openjdk*

#verify
java -version
javac -version
 
PREVIOUS NEXT
Tagged: #uninstall #specific #java #openjdk #ubuntu
ADD COMMENT
Topic
Name
9+6 =