autoinstallersbutbetter/alma/jdk

11 lines
356 B
Plaintext
Raw Permalink Normal View History

2022-05-31 19:28:17 -04:00
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