AdoptOpenJDK — RPM and DEB files

George Adams
May 20, 2019 · 2 min read

You asked and we listened! Official RPM and DEB files are now ready!

Image for post
Image for post
full list of currently supported adoptopenjdk versions

AdoptOpenJDK Package Names

The following name schema is being used:

JDK

adoptopenjdk-<version>-<jvm>
e.g adoptopenjdk-8-hotspot or adoptopenjdk-11-openj9

JRE

adoptopenjdk-<version>-<jvm>-jre
e.g adoptopenjdk-8-hotspot-jre or adoptopenjdk-11-openj9-jre

For the full matrix of supported platforms read the documentation here.

Debian/Ubuntu Instructions

1. Import the official AdoptOpenJDK GPG key

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -

2. Import the AdoptOpenJDK DEB repo using add-apt-repository. If you get a command not found error then try apt-get install -y software-properties-common first.

sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

3. Install the openjdk version you require

apt-get update # update if you haven't already
apt-get install adoptopenjdk-8-hotspot

Centos/Rhel/Fedora Instructions

  1. Add the RPM repo to /etc/yum.repos.d/adoptopenjdk.repo making sure to change the centos version if you are not using centos 7. RPM’s are also available for Rhel and Fedora. To check the full list of versions supported take a look at https://adoptopenjdk.jfrog.io/adoptopenjdk/rpm.
cat <<EOF > /etc/yum.repos.d/adoptopenjdk.repo
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/centos/7/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
EOF

2. Install the openjdk version you require

yum update # update if you haven't already
yum install adoptopenjdk-8-hotspot

openSUSE/Sles Instructions

  1. Import the RPM repo making sure to change the openSUSE version if you are not using OpenSUSE 15.0. RPM’s are also available for Sles 12 and 15. To check the full list of versions supported take a look at https://adoptopenjdk.jfrog.io/adoptopenjdk/rpm.
zypper ar -f http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/opensuse/15.0/$(uname -m) adoptopenjdk

2. Install the openjdk version you require

zypper install adoptopenjdk-8-hotspot

AdoptOpenJDK

The Community and code behind the Build Farm which produces…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store