mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
48627306e1
What this change accomplishes: * Ask Fedora about Java -> point out to https://ask.fedoraproject.org/en/questions/scope:all/sort:activity-desc/tags:java/page:1/ instead of https://ask.fedoraproject.org/tags/java * Add it switch between Version * Add Version, LTS, and Latest * Where this premise come from? Do NOT use Oracle rpms as these are NOT compatible with fedora/openjdk packages, actually is very well compatible and works with fedora rpm format package, and I install it without any problem or message... [Ticket: #160 ]
27 lines
558 B
Text
27 lines
558 B
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:
|
|
|
|
----
|
|
# dnf install <openjdk-package-name>
|
|
----
|
|
|
|
For example:
|
|
|
|
----
|
|
# dnf install java-{1.8.0|11|latest}-openjdk.x86_64
|
|
----
|