본문 바로가기

OS/Linux

[CentOS6] yum repo 변경

반응형
mkdir /etc/yum.repo.d/backup_repo

mv CentOS-*.repo backup_repo/

wget -P /etc/yum.repos.d https://mapoo.net/downfiles/Linux/repo/centos-vault.repo --no-check-certificate

cat centos-vault.repo 
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/os/$basearch/
gpgcheck=0
priority=1
protect=1
 
[update]
name=CentOS-$releasever - Updates
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/updates/$basearch/
gpgcheck=0
priority=1
protect=1
 
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.iij.ad.jp/pub/linux/centos-vault/centos/$releasever/extras/$basearch/
gpgcheck=0
priority=1
protect=1

yum clean all

yum repolist
반응형