autoinstallers/alma/jdk
2022-05-31 18:28:17 -05:00

11 lines
356 B
Plaintext

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