quick-docs/modules/ROOT/pages/_partials/proc_installing-openjdk.adoc

28 lines
558 B
Text
Raw Normal View History

2017-12-14 17:07:39 +00:00
[id='installing-openjdk']
= Installing OpenJDK
To install OpenJDK from the Fedora repository:
. Run the following command to list available versions:
2017-12-14 17:07:39 +00:00
----
$ dnf search openjdk
----
2017-12-14 17:07:39 +00:00
. Copy the version of OpenJDK you want to install.
2017-12-14 17:07:39 +00:00
[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:
2017-12-14 17:07:39 +00:00
----
2018-01-01 16:22:37 +00:00
# dnf install <openjdk-package-name>
2017-12-14 17:07:39 +00:00
----
2018-01-01 16:22:37 +00:00
For example:
2018-01-01 16:22:37 +00:00
2017-12-14 17:07:39 +00:00
----
# dnf install java-{1.8.0|11|latest}-openjdk.x86_64
2017-12-14 17:07:39 +00:00
----