CentOS Install Java SDK using yum Command

w‮al.ww‬utturi.com
CentOS Install Java SDK using yum Command

To install the Java SDK on CentOS using the yum package manager, you can use the following steps:

  1. Make sure that the webupd8team repository is enabled on your system. The Java SDK is available in the webupd8team repository. You can enable the webupd8team repository by running the following command:
sudo yum install epel-release
  1. Once the webupd8team repository is enabled, you can install the Java SDK using the yum package manager:
sudo yum install oracle-java8-installer

This will install the Java SDK and set it as the default Java runtime on your system.

  1. To verify that the Java SDK is installed and set as the default Java runtime, you can use the java command:
java -version

This should display the version of the Java SDK that is installed on your system.

Note: The Java SDK is also known as the Java Development Kit (JDK). The JDK includes the Java Runtime Environment (JRE) as well as tools for developing and testing Java applications. If you only want to install the JRE, you can use the oracle-java8-set-default package instead of the oracle-java8-installer package.

It's a good idea to regularly update the Java SDK to the latest version to ensure that you have the latest security updates and features. You can use the yum or dnf package manager to update the Java SDK to the latest version.

Created Time:2017-10-16 14:38:40  Author:lautturi