쿠키 기본 설정 선택

당사는 사이트와 서비스를 제공하는 데 필요한 필수 쿠키 및 유사한 도구를 사용합니다. 고객이 사이트를 어떻게 사용하는지 파악하고 개선할 수 있도록 성능 쿠키를 사용해 익명의 통계를 수집합니다. 필수 쿠키는 비활성화할 수 없지만 '사용자 지정' 또는 ‘거부’를 클릭하여 성능 쿠키를 거부할 수 있습니다.

사용자가 동의하는 경우 AWS와 승인된 제3자도 쿠키를 사용하여 유용한 사이트 기능을 제공하고, 사용자의 기본 설정을 기억하고, 관련 광고를 비롯한 관련 콘텐츠를 표시합니다. 필수가 아닌 모든 쿠키를 수락하거나 거부하려면 ‘수락’ 또는 ‘거부’를 클릭하세요. 더 자세한 내용을 선택하려면 ‘사용자 정의’를 클릭하세요.

Amazon Corretto 23 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions - Amazon Corretto 23
이 페이지는 귀하의 언어로 번역되지 않았습니다. 번역 요청

Amazon Corretto 23 Installation Instructions for Debian-Based, RPM-Based and Alpine Linux Distributions

This topic describes how to install Amazon Corretto 23 on Debian-based, RPM-based and Alpine Linux distributions.

If you need to install Amazon Corretto 23 on Amazon Linux, see Installing on Amazon Linux.

Install Amazon Corretto 23 on Debian-Based Linux

This section describes how to install and uninstall Amazon Corretto 23 on a host or container running a Debian-based operating system.

Using apt

To use the Corretto Apt repositories on Debian-based systems, such as Ubuntu, import the Corretto public key and then add the repository to the system list by using the following commands:

wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg && \ echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list

After the repo has been added, you can install Corretto 23 by running this command:

sudo apt-get update; sudo apt-get install -y java-23-amazon-corretto-jdk

For old version Ubuntu such as 14.04, you might encounter error like

GPG error: https://apt.corretto.aws stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A122542AB04F24E3

If so, add the public key via:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A122542AB04F24E3

Download and Install the Debian Package Manually

  1. Before you install the JDK, install the java-common package.

    sudo apt-get update && sudo apt-get install java-common
  2. Download the Linux .deb file from the Downloads page.

  3. Install the .deb file by using sudo dpkg --install. For example install x86_64 deb using the following command:

    sudo dpkg --install java-23-amazon-corretto-jdk_23.0.2.7-1_amd64.deb

Verify Your Installation

In the terminal, run the following command to verify the installation.

java -version

Expected output for 23.0.2:

openjdk version "23.0.2" 2025-01-21 OpenJDK Runtime Environment Corretto-23.0.2.7.1 (build 23.0.2+7-FR) OpenJDK 64-Bit Server VM Corretto-23.0.2.7.1 (build 23.0.2+7-FR, mixed mode)

If you see a version string that doesn't mention Corretto, run the following command to change the default java or javac providers.

sudo update-alternatives --config java

If you're using the JDK, you should also run the following.

sudo update-alternatives --config javac

Uninstall Amazon Corretto 23

You can uninstall Amazon Corretto 23 by using the following command.

sudo dpkg --remove java-23-amazon-corretto-jdk

Install Amazon Corretto 23 on RPM-Based Linux

Using yum

To use Corretto RPM repositories with the yum package manager (such as Amazon Linux AMI), import the Corretto public key and then add the repository to the system list. For most systems, you must run the following commands:

sudo rpm --import https://yum.corretto.aws/corretto.key sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo

After the repository is added, you can install Corretto 23 by running this command:

sudo yum install -y java-23-amazon-corretto-devel

Using zypper

To use Corretto RPM repositories with the zyppr package manager (such as openSUSE), import the Corretto public key and then add the repository to the system list by running the following commands:

sudo zypper addrepo https://yum.corretto.aws/corretto.repo; sudo zypper refresh

After the repository is added, you can install Corretto 23 by running this command:

sudo zypper install java-23-amazon-corretto-devel

Download and install RPM package manually

  1. Download the Linux .rpm file from the Downloads page.

  2. Install the downloaded .rpm file using yum localinstall. For example install x86_64 rpm using the following command:

    sudo yum localinstall java-23-amazon-corretto-devel-23.0.2.7-1.x86_64.rpm

Verify Your Installation

In the terminal, run the following command to verify the installation.

java -version

Expected output for 23.0.2:

openjdk version "23.0.2" 2025-01-21 OpenJDK Runtime Environment Corretto-23.0.2.7.1 (build 23.0.2+7-FR) OpenJDK 64-Bit Server VM Corretto-23.0.2.7.1 (build 23.0.2+7-FR, mixed mode)

If you see a version string that doesn't mention Corretto, run the following command to change the default java or javac providers.

sudo alternatives --config java

If you're using the JDK, you should also run the following.

sudo alternatives --config javac

Uninstall Amazon Corretto 23

You can uninstall Amazon Corretto 23 by using the following command:

sudo yum remove java-23-amazon-corretto-devel

Install Amazon Corretto 23 on Alpine Linux

Using Alpine Package Manager

To use Corretto Alpine repositories with the Alpine package manager import the Corretto public key and then add the repository to the system list. For most systems, you must run the following commands:

wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub echo "https://apk.corretto.aws/" >> /etc/apk/repositories apk update

After the repository is added, you can install Corretto 23 by running this command:

apk add amazon-corretto-23

Uninstall Amazon Corretto 23

You can uninstall Amazon Corretto 23 by using the following

Uninstall JDK:

apk del amazon-corretto-23
프라이버시사이트 이용 약관쿠키 기본 설정
© 2025, Amazon Web Services, Inc. 또는 계열사. All rights reserved.