본문으로 바로가기

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

 

참고로 vault 서버는 중지된 듯..아래 서버 중 한 곳을 이용할 것..

https://linuxsoft.cern.ch/centos-vault/

http://ftp.iij.ad.jp/pub/linux/centos-vault/

 

2024/07/27일 현재.. 위의 두 번째 서버로 변경 후 업데이트 잘 됨을 확인..

'블로그 (Blog) > 개발로그 (Devlogs)' 카테고리의 다른 글

opennurbs for mingw  (0) 2024.03.08
phong shading의 아주 좋은 예제  (0) 2024.03.08
OpenCASCADE topology  (0) 2024.03.08
pyinstaller 설치 on Python 2.7  (0) 2024.03.08
ntldd  (0) 2024.03.08