Documentation
Linux (RPM/DEB/APK) installer packages
fooBar
Table of Contents

Eclipse Temurin RPM, DEB and APK packages are now available for installation on your favourite Linux distribution.

See Supported Platforms for a list of our officially supported installers by Linux distribution / version. Other Linux distributions / versions are supported on a best-effort basis.

Please note that on most Linux systems, superuser privileges are required to install packages such as Temurin. To ensure successful execution of the commands below, you may need to prefix them with sudo. Additionally, when adding the repository, consider using sudo tee to avoid potential permission issues. For example:

echo "deb [arch=amd64] https://some.repository.url focal main" | sudo tee /etc/apt/sources.list.d/adoptium.list > /dev/null

By using sudo tee, you can write the repository entry to the appropriate file with elevated privileges, preventing any write permission errors. This ensures a smooth installation process."

Eclipse Temurin Package Names

The following name schema is being used:

temurin-<version>-jdk
e.g temurin-17-jdk or temurin-8-jdk

Deb installation on Debian or Ubuntu

  1. Ensure the necessary packages are present:

    apt install -y wget apt-transport-https
  2. Download the Eclipse Adoptium GPG key:

    wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
  3. Configure the Eclipse Adoptium apt repository. To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/deb/dists/.

    echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
    For Linux Mint (based on Ubuntu) you have to replace VERSION_CODENAME with UBUNTU_CODENAME.
  4. Install the Temurin version you require:

    apt update # update if you haven't already
    apt install temurin-17-jdk

CentOS/RHEL/Fedora Instructions

  1. Add the RPM repo to /etc/yum.repos.d/adoptium.repo making sure to change the distribution name if you are not using CentOS/RHEL/Fedora. To check the full list of versions supported take a look at the list in the tree at https://packages.adoptium.net/ui/native/rpm/.

    # Uncomment and change the distribution name if you are not using CentOS/RHEL/Fedora
    # DISTRIBUTION_NAME=centos
    
    cat <<EOF > /etc/yum.repos.d/adoptium.repo
    [Adoptium]
    name=Adoptium
    baseurl=https://packages.adoptium.net/artifactory/rpm/${DISTRIBUTION_NAME:-$(. /etc/os-release; echo $ID)}/\$releasever/\$basearch
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
    EOF
  2. Install the Temurin version you require using dnf:

    dnf install temurin-17-jdk

    Alternatively, if you are using yum:

    yum install temurin-17-jdk

openSUSE/SLES Instructions

  1. Import the RPM repo as follows. RPM’s are also available for SLES 12 and 15. To check the full list of versions supported take a look at https://packages.adoptium.net/ui/native/rpm/. The repositories may work with other versions but are not guaranteed and have not been tested.

    zypper ar -f https://packages.adoptium.net/artifactory/rpm/opensuse/$(. /etc/os-release; echo $VERSION_ID)/$(uname -m) adoptium
  2. Install the Temurin version you require:

    zypper install temurin-17-jdk

Alpine Linux Instructions

  1. Download the Eclipse Adoptium RSA key:

    wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk
  2. Configure the Eclipse Adoptium APK repository:

    echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' >> /etc/apk/repositories
  3. Install the Temurin version you require:

    apk add temurin-17-jdk

Please raise any issues over at https://github.com/adoptium/installer/issues.

Documentation Authors
gdams karianna perlun TheCrazyLex TobiX topaussie sxa tellison luozhenyu Ndacyayisenga-droid ecspresso
Help us make these docs great!
All Adoptium docs are open source. See something that's wrong or unclear?
gradient overlay mobile

Connect with the community

Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime binaries that are enterprise-ready and Java SE TCK-tested for general use in the Java ecosystem.

Frequently asked questions

Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime.

Have a question that hasn’t been answered? Get in touch

Where are the latest Adoptium® JDKs?

Where are the latest Adoptium® JDKs?

Where are the latest Adoptium® JDKs?

Where are the latest Adoptium® JDKs?

Where are the latest Adoptium® JDKs?

Where are the latest Adoptium® JDKs?

Thank you to our 300+contributors