" command, and the JDK installation will be displayed. A list of all files and directories, including the installation path."/> " command, and the JDK installation will be displayed. A list of all files and directories, including the installation path.">

Home >Operation and Maintenance >Linux Operation and Maintenance >Where is the directory where linux uses yum to install jdk?

Where is the directory where linux uses yum to install jdk?

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌Original
2023-07-11 16:32:083631browse

When Linux uses the yum command to install JDK, the installation directory is determined by the operating system package manager. The search steps are: 1. Open the terminal; 2. Run the "rpm -ql" command, which will be displayed List of all files and directories installed by the JDK, including the installation path.

Where is the directory where linux uses yum to install jdk?

Operating system for this tutorial: Linux5.18.14 system, Dell G3 computer.

When using the yum command to install the JDK, the installation directory is determined by the operating system package manager and is not fixed. For distributions based on Red Hat or CentOS, yum will install the JDK to the /usr/java/ directory. The specific installation path may vary depending on the Linux distribution and JDK version.

If you want to determine the installation path of the JDK, you can find it through the following steps:

1. Open the terminal.

2. Run the following command to find the JDK installation path:

 rpm -ql <jdk-package-name>

e27efb223453121ff2600127aa7d0a99 is the package name specified when installing JDK through the yum command. For example, if you are using OpenJDK 11, the package name might be java-11-openjdk. After running the above command, a list of all files and directories installed by the JDK will be displayed, including the installation path.

Please note that if you manually download and install the JDK from the Oracle official website, the installation path may be different from that installed by the yum package manager. In this case, you need to check the documentation or related instructions of the JDK installer you downloaded to determine its installation path.

The above is the detailed content of Where is the directory where linux uses yum to install jdk?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn