autoinstallers/alma-x64/jdk

11 lines
356 B
Plaintext
Raw Permalink Normal View History

cat <<EOF > /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/centos/8/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
EOF
yum remove java-1.8.0-openjdk-headless -y
yum update -y # update if you haven't already -y
yum install temurin-17-jdk -y