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 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