yum配置下载源

1.http://www.iteye.com/topic/690481
文中描述的内容存在问题 修改内容如下
[base]  
name=CentOS-5 – Base  
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&  
repo=os  
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/  
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/  
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#released updates  
[update]  
name=CentOS-5 – Updates  
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates  
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/  
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#packages used/produced in the build but not released  
[addons]  
name=CentOS-5 – Addons  
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons  
 
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/  
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#additional packages that may be useful  
[extras]  
name=CentOS-5 – Extras  
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras  
 
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/  
gpgcheck=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#additional packages that extend functionality of existing packages  
[centosplus]  
name=CentOS-5 – Plus  
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus  
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/  
gpgcheck=1 
enabled=0 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
 
#contrib – packages by Centos Users  
[contrib]  
name=CentOS-5 – Contrib  
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib  
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/  
gpgcheck=1 
enabled=0 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5

启用yum 执行必要软件安装 安装yumex
yum install yumex
(需要代理则需要设置 /etc/yum.conf 中设置代理,设置方式见上一篇。如果无法下载执行步骤2)
2.http://rpm.pbone.net/index.php3/stat/4/idpl/14025724/dir/centos_5/com/yumex-2.0.3-2.el5.centos.noarch.rpm.html
手动安装yumex安装程序
3.安装yumex rpm包 执行 rpm -i yumex-2.0.3-2.el5.centos.noarch.rpm
4.运行yumex启动图形界面 搜索libXp
安装libXp-devel,libXpm

你可能感兴趣的:(html,.net,centos,OS)