1.JDK 8 Example
(1.1) Debian, Ubuntu, etc. use the following installation commands:
sudo Install openjdk-8-jre
The PS:OPENJDK-8-JRE contains only the JRE, and if you need to develop a Java program, you need to download OPENJDK-8-JDK
(1.2) Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. use the following commands:
su " Yum Install java-1.8.0-openjdk "
The PS:JAVA-1.8.0-OPENJDK contains only the JRE, and if you need to develop a Java program, you need to download Java-1.8.0-openjdk-devel
2. Versions of the JDK
Debian, Ubuntu and other versions of the JDK control
|
Jre |
Jdk |
1.8 |
Openjdk-8-jre |
Openjdk-8-jdk |
1.7 |
Openjdk-7-jre |
Openjdk-7-jdk |
1.6 |
Openjdk-6-jre |
Openjdk-6-jdk |
Fedora, Oracle Linux, Red Hat Enterprise Linux, and other versions of the JDK control
|
Jre |
Jdk |
1.8 |
Java-1.8.0-openjdk |
Java-1.8.0-openjdk-devel |
1.7 |
Java-1.7.0-openjdk |
Java-1.7.0-openjdk-devel |
1.6 |
Java-1.6.0-openjdk |
Java-1.6.0-openjdk-devel |
3. View the Java installation package
sudo grep Java
4. If you need to upgrade from 1.7 to 1.8, use the command
sudo rpm-e corresponds to OPENJDK package
After clearing the corresponding JDK, reinstall the new version of the JDK
5. Related information:
Official website: http://openjdk.java.net/install/
Installing OPENJDK 8