mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
13ff192165
Better examples on how to install openjdk.
57 lines
1 KiB
Text
57 lines
1 KiB
Text
[id='installing-openjdk']
|
|
= Installing OpenJDK
|
|
|
|
To install OpenJDK from the Fedora repository:
|
|
|
|
* Run the following command to list available versions:
|
|
|
|
----
|
|
dnf search openjdk
|
|
----
|
|
|
|
* Copy the version of OpenJDK you want to install.
|
|
|
|
[NOTE]
|
|
Various flavors of OpenJDK are available. For information about these options, search the link:http://openjdk.java.net/[OpenJDK web site].
|
|
|
|
* Run the following command to install OpenJDK:
|
|
|
|
----
|
|
sudo dnf install <openjdk-package-name>
|
|
----
|
|
|
|
Examples:
|
|
|
|
----
|
|
sudo dnf install java-1.8.0-openjdk.x86_64
|
|
----
|
|
|
|
----
|
|
sudo dnf install java-11-openjdk.x86_64
|
|
----
|
|
|
|
----
|
|
sudo dnf install java-latest-openjdk.x86_64
|
|
----
|
|
|
|
== Installing OpenJDK for development
|
|
|
|
In order to install the Java Development Kit, runtime environment and associated development tools.
|
|
|
|
----
|
|
sudo dnf install <openjdk-package-name>-devel
|
|
----
|
|
|
|
Examples:
|
|
|
|
----
|
|
sudo dnf install java-1.8.0-openjdk-devel.x86_64
|
|
----
|
|
|
|
----
|
|
sudo dnf install java-11-openjdk-devel.x86_64
|
|
----
|
|
|
|
----
|
|
sudo dnf install java-latest-openjdk-devel.x86_64
|
|
----
|