yum update 실행시 404 not found 나 업데이트가 안될시에
다음 저장소로 변경 방법입니다
먼저 기존 파일 백업
#bzip2 /etc/yum.repos.d/CentOS-*.repo
#yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
repolist: 0
압축 파일 확인
# ll
�հ� 40
drwxr-xr-x 2 root root 4096 10�� 31 13:36 ./
drwxr-xr-x 92 root root 12288 10�� 30 15:52 ../
-rw-r–r– 1 root root 682 2�� 25 2012 CentOS-Base.repo.bz2
-rw-r–r– 1 root root 432 2�� 25 2012 CentOS-Debuginfo.repo.bz2
-rw-r–r– 1 root root 414 2�� 25 2012 CentOS-Media.repo.bz2
-rw-r–r– 1 root root 753 2�� 25 2012 CentOS-Vault.repo.bz2
다음 저장소 파일 생성
# echo ‘[base]
> name=CentOS-$releasever – Base
> baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/
> gpgcheck=0
> [updates]
> name=CentOS-$releasever – Updates
> baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/
> gpgcheck=0
> [extras]
> name=CentOS-$releasever – Extras
> baseurl=http://ftp.daum.net/centos/$releasever/extras/$basearch/
> gpgcheck=0′ > /etc/yum.repos.d/Daum.repo
다음repolist 확인
# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
base | 1.1 kB 00:00
base/primary | 1.3 MB 00:00
base 3667/3667
extras | 2.1 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 105 kB 00:00
repo id repo name status
base CentOS-5 – Base 3,667
extras CentOS-5 – Extras 266
updates CentOS-5 – Updates 97
repolist: 4,030
[polldaddy rating=”7739789″]