Centos 4.x 리포지터리 변경 방법

[![image.png](http://wiki.igoni.kr/uploads/images/gallery/2026-02/scaled-1680-/0jAimage.png)](http://wiki.igoni.kr/uploads/images/gallery/2026-02/0jAimage.png)
perplexity에서 생성한 AI이미지

Centos 4버전은 EOL(End Of Life)된 OS이기 때문에, 국내경로에서는 업데이트 제공이 안됩니다.
Centos.org에서 가지고 있는 이미지로 패키지 관리를 해야 하기 떄문에 기본 경로에서 변경을 해 주어야 합니다.

/etc/yum.repos.d/CentOS-Base.repo 파일 열어서 아래 내용으로 내용 변경

$> vi /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo
#
# CentOS-4 is past End of Life … use at your own risk
#

[base]
name=CentOS-$releasever  Base
baseurl=http://vault.centos.org/4.9/os/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=1
#released updates

[update]
name=CentOS-$releasever  Updates
baseurl=http://vault.centos.org/4.9/updates/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=1
#packages used/produced in the build but not released

[addons]
name=CentOS-$releasever  Addons
baseurl=http://vault.centos.org/4.9/addons/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=1

#additional packages that may be useful

[extras]
name=CentOS-$releasever  Extras
baseurl=http://vault.centos.org/4.9/extras/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=1

# additional packages that extend functionality of existing packages

[centosplus]
name=CentOS-$releasever  Plus
baseurl=http://vault.centos.org/4.9/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=2

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever  Contrib
baseurl=http://vault.centos.org/4.9/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-centos4
protect=1
priority=2






작성일: 2026년 7월 15일 ,  마지막 업데이트: 2026년 7월 15일