Skip to content

**** ****

for my bad memories..

CentOS 6.5 repository 변경


CentOS 6.x 버전의 업데이트는 2020.11.30 일부로 종료됨.

$ yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
repo id                        repo name                                  status
base                           CentOS-6 - Base                            0
extras                         CentOS-6 - Extras                          0
updates                        CentOS-6 - Updates                         0
repolist: 0

종료된 버전의 경우 CentOS는 따로 vault 업데이트 서버를 운영중임.
해당 서버로 아래와 같이 CentOS-Base.repo 파일의 전체 내용을 변경하면 업데이트 가능.

$ cd /etc/yum.repos.d/
$ cp CentOS-Base.repo CentOS-Base.repo.old

$ vim CentOS-Base.repo (아래의 내용으로 교체)

[base]
name=CentOS-$releasever - Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

# additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
# baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=https://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

$ yum clean all

$ yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
repo id                        repo name                                  status
base                           CentOS-6 - Base                            6,713
extras                         CentOS-6 - Extras                             47
updates                        CentOS-6 - Updates                         1,193
repolist: 7,953

Categorized as: Linux



답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.