

The first step is to find the name of the installed package as you have to know the exact name of the package for removal. This section is useful for those who used the.
Linux uninstall openjdk how to#
So let's say I want to remove the JRE version 17, then, I will be using the following: sudo apt remove openjdk-17-jre How to remove Java manually from Ubuntu Once Zulu OpenJDK 11 is installed, ensure it is set as the default Java VM using the steps specific to your Linux Distribution. This is not required on Amazon Linux 2022 and later.

Option 1: Use the yum Package Manager on Amazon Linux Enable the yum repository in Amazon Linux 2.
Linux uninstall openjdk install#
which will uninstall Java 7 and install Java 8: - name: Removing old. If you use purge options along with auto. AWS Amazon Linux comes with Java 7 but Jenkins has pre-requisites to install Java 8. sudo apt-get remove openjdk To Uninstall OpenJDK Ubuntu Java Runtime along with dependencies - Enter the below command on Ubuntu Terminal. If you use with purge options to openjdk-8-jdk package all the configuration and dependent packages will be removed. Uninstalling OpenJDK on Linux Redhat Step 1: Open the terminal and type the following command: sudo rpm -qa grep openjdk This command will list all the. If you installed a specific version of JRE on your Ubuntu machine, you can use the similar command syntax as above to remove JRE: sudo apt remove openjdk-jre This topic describes how to install and uninstall Amazon Corretto 8 on a host or container running the Amazon Linux 2 or Amazon Linux 2022 operating system. Steps to Uninstall OpenJDK Ubuntu To Uninstall OpenJDK Ubuntu Java Runtime - Enter the below command on Ubuntu Terminal. So if you've installed a specific version of JDK, for removal, you will have to execute the apt remove command in the following manner: sudo apt remove openjdk-jdkįor reference, I have installed JDK version 17 so if I were to remove it, I will be using the following: sudo apt remove openjdk-17-jdk Remove a specific version of JRE from Ubuntu So if you installed a default version given by the apt of JDK, you will have to use the following command to remove the JDK: sudo apt remove default-jdk Remove JRE from Ubuntu (Default version)Īnd if you've installed the default version of JRE with apt, all you have to do is execute the following command for removal: sudo apt remove default-jreīut what if you went with a specific version of JDK and JRE? Remove a specific version of JDK from Ubuntu There are 2 ways by which you can install Java in Ubuntu:Īnd using Ubuntu, you can also specify which version you want to install of JDE and JRE. Ubuntu 18.04 Review of New Features How to uninstall Java from Ubuntu using apt
