Linux   « CGI - Syntax check | HOME | Samba - File Server for Windows »

 ■ Yum - add repository & fastest mirror

(Cent OS 4.4)

Import GPG key
# rpm --import http://ftp.riken.jp/Linux/caos/centos/RPM-GPG-KEY-CentOS-4

# nano /etc/yum.repos.d/CentOS-Base.repo
[base]
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.riken.jp/Linux/caos/centos/$releasever/os/$basearch/

[update]
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://ftp.riken.jp/Linux/caos/centos/$releasever/updates/$basearch/

[addons]
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
baseurl=http://ftp.riken.jp/Linux/caos/centos/$releasever/addons/$basearch/

[extras]
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://ftp.riken.jp/Linux/caos/centos/$releasever/extras/$basearch/


Add dag repository

# nano /etc/yum.repos.d/dag.repo (create dag repo file)
[dag]
name=Dag RPM Repository for RHEL4/CentOS4
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el4/en/$basearch/dag/
enabled=1
gpgcheck=1

# rpm --import http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
import GPG key


Install fastest mirror
After installed it, yum can identify which site is not busy to download. Then download speed can be faster.
# yum -y install yum-fastestmirror


Check which installation package contains which file
When you are prompted from the system that some files are missing and the application does not work, you can check which installation package containts this file.

# yum provides libstdc++.so.5

Then you can check which package contains libstdc++.so.5 for example. Then you can install it.


Disable yum-updatesd
This daemon runs yum every 1hour at background and if you executed yum manually at the same time, it will conflict and the installation will be failed. So better disable it and install yum-cron.

# /etc/rc.d/init.d/yum-updatesd stop
# yum remove yum-updatesd

# yum install yum-cron
# /etc/rc.d/init.d/yum-cron start
# chkconfig yum-cron on

投稿者 tomopugh : 2007年03月27日 15:38

Comment

Please comment !




Save the info?


  (Please don't click on "post" twice. It takes time a bit to change to the next screen!!)