autoinstallersbutbetter/debian/jdk
2022-05-31 18:28:17 -05:00

13 lines
504 B
Plaintext

sudo apt-get install -y wget apt-transport-https
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo tee /usr/share/keyrings/adoptium.asc
echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
cat /etc/apt/sources.list.d/adoptium.list
sudo apt-get update
DEBIAN_FRONTEND=noninteractive apt install temurin-17-jdk