_ap_ufes{"success":true,"siteUrl":"www.jucktion.com/tech","urls":{"Home":"https://www.jucktion.com/tech","Category":"https://www.jucktion.com/tech/c/mobile/android/","Archive":"https://www.jucktion.com/tech/2018/12/","Post":"https://www.jucktion.com/tech/windows-network-traffic-analysis-single-app/","Page":"https://www.jucktion.com/tech/about/","Attachment":"https://www.jucktion.com/tech/windows-network-traffic-analysis-single-app/capture-traffic-specific-application/","Nav_menu_item":"https://www.jucktion.com/tech/3985/"}}_ap_ufee How to completely remove Java installation from Ubuntu - Tech Junction

How to completely remove Java installation from Ubuntu

By | 19th October, 2014 | 0 Comments

So you’ve had enough  of Java on your Ubuntu installation and want to remove it all from your PC. The default way of uninstalling on Ubuntu with (apt-get remove) removes the current installation and tries to install the default version. And because we don’t want that anymore, we need Java out of the system.

If you have removed Java from your system you will get the following message from the command when you try to run “java”. The Ubuntu offers you to install java from the list of packages if you want to install Java again.


Here is a simple command that does this simple and easily.

sudo apt-get purge icedtea-* openjdk-*

This searches for openjdk installation and icedtea plugin installation and removes it from the system permanently without the need to download any other packages in the process.

After you’ve run that command successfully, you can clean the obsolete packages that you don’t need any more by the following command.

sudo apt-get autoremove


And you’ve just removed the OpenJDK, JRE and Icedtea Java installation from your Ubuntu operating system.

Tags: , , ,

Category: Linux