163、suho yum源配置

#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
#cd /etc/yum.repos.d/
#wget http://mirrors.163.com/.help/CentOS*-Base-163.repo
#wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
#rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-*
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#yum clean all
#yum makecache
本地yum源配置
#mount /dev/cdrom /mnt
#cd /etc/yum.repos.d/
vi cdrom.repo
[GuangPan]  
name=CentOS-$releasever - Media  
baseurl=file:///mnt/ 
gpgcheck=0  
enabled=1 
#mv CentOS-Base.repo CentOS-Base.repo.bak
#mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak
#yum clean all