Search

'clean'에 해당되는 글 1건

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

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

Linux 2017.12.20 15:12 Posted by 애플자라

대략 지난 버전이 꼭 필요하다면 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]yum CentOS 지난 버전 사용하기  (0) 2017.12.20
[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
[SSH]접속툴(telnet/SSH/SFTP)  (0) 2017.08.03
[Linux]Samba 업데이트  (0) 2017.06.13