How to remove OpenJRE from Ubuntu Server

You can use the following commands to remove the OpenJRE from Ubuntu 12.04 Server

First check your Java Version

root@ubuntusrv:~# java -version
java version "1.7.0_51"
OpenJRE Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJRE 64-Bit Server VM (build 24.45-b08, mixed mode)

Then type the following command to remove all the packages starting with name “openjre”

root@ubuntusrv:~# sudo apt-get purge openjre-\*


Finally reboot the server

No comments:

Post a Comment