목차

Adoptium Temurin OpenJDK

OpenJDK 최신 버전 확인하기 API

# Location Header 를 따라간다.
# 8
http -h "https://api.adoptium.net/v3/binary/latest/8/ga/linux/x64/jdk/hotspot/normal/adoptium?project=jdk"
 
# 11
http -h "https://api.adoptium.net/v3/binary/latest/11/ga/linux/x64/jdk/hotspot/normal/adoptium?project=jdk"
 
# 17
http -h "https://api.adoptium.net/v3/binary/latest/17/ga/linux/x64/jdk/hotspot/normal/adoptium?project=jdk"

Ubuntu/Debian install

sudo apt install -y wget apt-transport-https gnupg
 
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
 
echo "deb 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
 
sudo apt install temurin-17-jdk