GrepBoard/매뉴얼
605 편 ·

Rocky 9 security 저장소 켜기와 updateinfo

·시험 환경 Rocky Linux 9.8 (rocky-repos 9.8-1.2) · dnf 4.14 (Docker) · 2026-10·시험 범위 ↓·6 단계

Rocky 9 security 저장소는 rocky-repos 9.8 에 꺼진 채 들어 있습니다. 켜는 법과 내용을 보고, updateinfo 가 없어 dnf --security 로는 안 잡힘을 확인합니다.

output
Error: Unknown repo: 'security'

dnf --enablerepo=security 가 이렇게 실패하면 저장소 정의 파일이 옛 판입니다. Rocky 문서의 저장소 표에는 security 저장소가 Rocky 8·9·10 에 있고 기본으로 꺼져 있다고 나오는데, 9.3 시절 rocky-repos 에는 이 정의가 없었습니다. rocky-repos 를 올리면 /etc/yum.repos.d/rocky-security.repo 가 생깁니다.

문서는 이 저장소를 이렇게 설명합니다. 심각한 취약점이 있고 공개된 공격이 있는데 업스트림이 아직 고치지 않은 경우의 임시 핫픽스이며, 버전은 나중에 나오는 공식 패키지가 늘 덮어쓰도록 정해져 있습니다.

[1] 저장소 정의를 최신으로 올립니다. 아래는 9.3 컨테이너에서 한 결과입니다.

console
$ rpm -q rocky-repos rocky-releaserocky-repos-9.3-1.1.el9.noarchrocky-release-9.3-1.1.el9.noarch
console
$ sudo dnf update rocky-repos rocky-release$ rpm -q rocky-repos rocky-releaserocky-repos-9.8-1.2.el9.noarchrocky-release-9.8-1.2.el9.noarch

보통은 dnf update 전체를 하면 같이 올라갑니다.

[2] 저장소가 있는지, 꺼져 있는지 봅니다.

console
$ dnf -q repolist --all | grep -E "repo id|security"repo id                    repo name                                    statussecurity                   Rocky Linux 9 - Security                     disabledsecurity-debuginfo         Rocky Linux 9 - Security Debug               disabledsecurity-source            Rocky Linux 9 - Security Source              disabled

정의는 enabled=0, 서명 키는 기본 RPM-GPG-KEY-Rocky-9 입니다.

console
$ sed -n "/^\[security\]/,/^$/p" /etc/yum.repos.d/rocky-security.repo[security]name=Rocky Linux $releasever - Securitymirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=security-$releasever$rltype#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/security/$basearch/os/gpgcheck=1enabled=0countme=1metadata_expire=6hgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

[3] 켜기 전에 무엇이 들어 있는지 봅니다. 2026-10 에 받은 목록은 커널 한 판(44개 패키지)뿐이었습니다.

console
$ dnf -q --disablerepo="*" --enablerepo=security list --available | awk "NR>1{print \$2}" | sort | uniq -c     44 5.14.0-687.58.1.el9_8.0.1

같은 시점 BaseOS 에는 이보다 새 커널이 이미 있었습니다. 핫픽스 판(.0.1 접미)이 그 뒤 나온 공식 판에 밀린 상태로, 문서가 말한 버전 설계 그대로입니다.

console
$ dnf -q --enablerepo=security list --available kernel --showduplicates | tail -3kernel.x86_64                 5.14.0-687.58.1.el9_8.0.1                 securitykernel.x86_64                 5.14.0-687.59.1.el9_8                     baseos  kernel.x86_64                 5.14.0-687.60.1.el9_8                     baseos  

[4] 필요할 때만 한 번 켜서 씁니다. 공지된 핫픽스를 받을 때는 그 명령에서만 켭니다.

console
$ sudo dnf --enablerepo=security update kernel

계속 켜 두려면 dnf-plugins-core 의 config-manager 를 씁니다. 되돌리기는 --set-disabled 입니다.

console
$ sudo dnf config-manager --set-enabled security$ sudo dnf config-manager --set-disabled security

[5] dnf updateinfo 와 --security 업데이트에는 걸리지 않는다는 점을 알아 둡니다. 저장소 메타데이터 목록을 보면 BaseOS 에는 updateinfo 가 있고 security 저장소에는 없습니다.

console
$ curl -s https://dl.rockylinux.org/pub/rocky/9/security/x86_64/os/repodata/repomd.xml | grep -o "<data type=\"[a-z_]*\""<data type="primary"<data type="filelists"<data type="other"<data type="primary_db"<data type="filelists_db"<data type="other_db"

BaseOS 의 같은 파일에는 위 6개에 더해 group·group_xz·updateinfo 가 있었습니다. 권고(RLSA) 정보가 없으니 dnf updateinfo list, dnf update --security, 보안 업데이트만 받게 한 dnf-automatic 은 핫픽스를 고르지 않습니다. 핫픽스는 공지를 보고 [4] 처럼 직접 받습니다.

[6] 이름이 비슷한 SIG 저장소와 헷갈리지 않습니다. extras 의 rocky-release-security 패키지를 설치하면 생기는 것은 security 가 아니라 Security SIG 의 security-common 저장소(꺼짐)입니다.

console
$ dnf -q repolist --all | grep -i -E "security|repo id"repo id                 repo name                                       statussecurity-common         Rocky Linux 9 - SIG Security Common             disabledsecurity-common-debug   Rocky Linux 9 - SIG Security Common - Debug     disabledsecurity-common-source  Rocky Linux 9 - SIG Security Common - Source    disabled

여기에는 .security 접미의 glibc·openssh 와 lkrg·passwdqc 같은 강화 도구가 있었습니다. 기본 라이브러리를 바꾸므로 목적이 분명할 때만 켭니다. 업데이트 전 재시작 필요 여부 확인은 dnf needs-restarting에 있습니다.

#rocky-linux#dnf#security#repository#kernel