yum的配置

1.先安装以下软件
centos-yumconf-4-4.5.noarch.rpm                 sqlite-3.3.6-2.i386.rpm
python-elementtree-1.2.6-5.el4.centos.i386.rpm  yum-2.4.3-4.el4.centos.noarch.rpm
python-sqlite-1.1.7-1.2.1.i386.rpm              yum-metadata-parser-1.0-8.el4.centos.i386.rpm
python-urlgrabber-2.9.8-2.noarch.rpm

rpm -ivh *
rm -f /etc/yum.repos.d/*.*
2.编辑repo文件
vim /etc/yum.repos.d/AS4-Update.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.riken.jp/Linux/centos/4.8/os/$basearch/
gpgcheck=1

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://ftp.riken.jp/Linux/centos/4.8/updates/$basearch/
gpgcheck=1

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://ftp.riken.jp/Linux/centos/4.8/addons/$basearch/
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.riken.jp/Linux/centos/4.8/extras/$basearch/
gpgcheck=1


3.再重新导入新的GPG Key

#rpm --import http://ftp.riken.jp/Linux/centos/4.8/os/i386/RPM-GPG-KEY-centos4

4.测试安装是否成功
yum -y install net-snmp*
yum -y install ntp
yum -y install vim-enhanced
yum -y install sysstat
~                                  

你可能感兴趣的:(linux,职场,yum,休闲)