1. 새 릴리스 확인: 아래 명령이 최신 릴리스와 권장 업그레이드 명령을 보여준다.
sudo dnf check-release-update
2. 최신 버전 목록이 표시 된다.
A newer release of "Amazon Linux" is available.
Available Versions:
Version 2023.8.20250808:
Run the following command to upgrade to 2023.8.20250808:
dnf upgrade --releasever=2023.8.20250808
Release notes:
https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.8.20250808.html
Version 2023.8.20250818:
Run the following command to upgrade to 2023.8.20250818:
dnf upgrade --releasever=2023.8.20250818
Release notes:
https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.8.20250818.html
Version 2023.8.20250908:
Run the following command to upgrade to 2023.8.20250908:
dnf upgrade --releasever=2023.8.20250908
Release notes:
https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.8.20250908.html
Version 2023.8.20250915:
Run the following command to upgrade to 2023.8.20250915:
dnf upgrade --releasever=2023.8.20250915
Release notes:
https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.8.20250915.html
Version 2023.9.20250929:
Run the following command to upgrade to 2023.9.20250929:
dnf upgrade --releasever=2023.9.20250929
Release notes:
https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.9.20250929.html
3. 특정 릴리스로 전체 업그레이드:
- 다음처럼 릴리스 버전을 명시해 패키지 전부를 최신으로 맞춘다
sudo dnf upgrade --releasever=2023.9.20250929 -y
4. 항상 최신 버전으로 업데이트 하고 싶다면
sudo dnf upgrade --releasever=latest -y
5. 매번 영구적으로 최신 버전으로 업데이트 하고 싶다면.
- sudo dnf upgrade -y 하면 항상 최신버전으로 update
echo latest | sudo tee /etc/dnf/vars/releasever
sudo dnf upgrade -y
'개발 > AWS' 카테고리의 다른 글
AWS EC2 Jenkins /tmp 디렉토리 용량 부족 해결 (0) | 2025.10.02 |
---|---|
EC2 Amazon Linux 생성 (0) | 2018.12.18 |
AWS S3 API 이용 키 생성 (0) | 2018.11.28 |