posts

Linux package repositories for Liberica JDK

Mar 28, 2019
Aleksei Voitylov
3.5

Announcing public availability of repositories for .deb and .rpm-based Linux distributions

Keeping JDK secure requires ease of update and tight integration with operating systems default installation techniques.

Aside from the already available Docker repositories, we are happy to announce public availability of YUM and APT Linux packages reporitories for all supported versions of Liberica JDK, which includes security patches and critical updates. This allows customers and users to ensure security and integrity of Liberica JDK installations.

RPM repositories are known to work with supported versions of Centos, RHEL, Oracle Linux, Fedora and openSUSE. APT repositories are known to work with Ubuntu, Debian and Raspbian.

Please refer to installation guide for specific Liberica JDK version for detailed installation instructions on using a Linux repository.

APT Repository (.deb-based Linux distributions)

Add BellSoft official GPG key and setup the repository

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 32E9750179FCEA62

echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list

Update repositories and install Liberica JDK packages

sudo apt-get update

sudo apt-get install bellsoft-java11

YUM Repository (.rpm-based Linux Distributions)

Add BellSoft official GPG key and set up the repository

gpg --keyserver keys2.kfwebs.net --recv-keys 32e9750179fcea62

gpg --export -a 32e9750179fcea62 | sudo tee /etc/pki/rpm-gpg/RPM-GPG-KEY-bellsoft > /dev/null

echo | sudo tee /etc/yum.repos.d/bellsoft.repo > /dev/null << EOF

    [BellSoft]

    name=BellSoft Repository

    baseurl=https://yum.bell-sw.com

    enabled=1

    gpgcheck=1

    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-bellsoft

    priority=1

EOF

Update repositories and install packages

sudo yum update

sudo yum install bellsoft-java11

Available packages

For Liberica JDK 8, the following packages are available:

  • bellsoft-java8 contains the full Liberica JDK, including LibericaFX for platforms which support it.
  • bellsoft-java8-runtime includes Liberica JRE, including LibericaFX for platforms which support it.

For Liberica JDK 11 and on, the following packages are available:

  • bellsoft-java11 contains the full Liberica JDK, including LibericaFX and a variety of JVMs for platforms which support it.
  • bellsoft-java11-lite includes Liberica JDK with compressed modules and Server VM, without any extra packages.

Supported CPU Architectures

Packages for all architectures supported by Liberica JDK are available in the repository. At the time of writing, the list is as follows:

  • Liberica JDK 8: amd64, i386, armhf
  • Liberica JDK 11: amd64, arm64, armhf
  • Liberica JDK 12: amd64, i386, arm64, armhf

Switching default version of Liberica JDK

Liberica JDK packages, when installed change the default association for related executables. Different major versions of Liberica JDK can be installed in parallel in the same environment. The most major version installed becomes the default one.

On .rpm-based Linux operating systems, use update-alternatives command to switch between the default installed versions of runtime. On .rpm-based Linux operating systems, use update-java-alternatives command to switch between the default installed versions of runtime.

Subcribe to our newsletter

figure

Read the industry news, receive solutions to your problems, and find the ways to save money.

Further reading