autoinstallersbutbetter/debian/jdk

13 lines
504 B
Plaintext
Raw Permalink Normal View History

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