11 lines
356 B
Plaintext
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
|