티스토리 뷰

Linux

[Linux]yum CentOS 지난 버전 사용하기

애플자라 2017. 12. 20. 15:12
반응형

대략 지난 버전이 꼭 필요하다면 http://vault.centos.org를 이용하라는 소리다.

http://vault.centos.org에 가보면 지난 디렉토리들이 보이고, 디렉토리에 들어가면 다른 미러와 다르게 여러 디렉토리들이 보인다.

 

-------------------------------------------------------------------------

 

버전확인 ------>

grep . /etc/*-release
cat /etc/*-release | uniq

 

-------------------------------------------------------------------------

 

 

경로 : /etc/yum.repos.d

 

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

 


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


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


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


#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://vault.centos.org/5.5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://mirror.centos.org/centos/6.5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

 

-------------------------------------------------------------------------

저장하고

 

>yum clean all
>yum repolist

 

해서 제대로 동작하는지 확인한다.

 

출처 - http://nojinho.blogspot.kr/2015/06/tip-centos-iso-yum-repository.html

 

반응형

'Linux' 카테고리의 다른 글

[Linux]용량(MB,GB) 확인  (0) 2021.12.27
[LINUX]리눅스 파일내용 일괄변경  (0) 2019.04.01
[Linux]mount nfs 에러  (0) 2017.11.15
[FTP]SecureCrt X/Y/Zmodem  (0) 2017.09.18
[Linux]batch shell(tar,ftp,sftp)  (0) 2017.08.08
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함