反反复复
分类: LINUX
2013-03-23 10:01:17
1. 下载Yum的安装包
#wget
#wget
#wget
2. 查出当前的yum程序,进行卸载
#rpm -qa|grep yum
# rpm -e yum-3.2.22-20.el5 --nodeps
# rpm -e yum-updatesd-0.9-2.el5 --nodeps
# rpm -e yum-security-1.1.16-13.el5 --nodeps
# rpm -e yum-metadata-parser-1.1.2-3.el5 --nodeps
# rpm -e yum-rhn-plugin-0.5.4-13.el5 --nodeps
3. 下载并导入KEY
# cd /etc/pki/rpm-gpg/
# wget
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
4. 安装yum安装包
rpm -ivh yum-3.2.22-33.el5.centos.noarch.rpm \
yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm \
yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
5. 修改配置文件
Vi /etc/yum.repos.d/rhel-debuginfo.repo
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=
gpgcheck=1
至此yum安装完成,可以 yum install 安装程序了
if ($ != jQuery) { $ = jQuery.noConflict(); } var isLogined = false; var cb_blogId = 73469; var cb_entryId = 2037408; var cb_blogApp = "itfriend"; var cb_blogUserGuid = "e0d183e8-4083-df11-ba8f-001cf0cd104b"; var cb_entryCreatedDate = '2011/5/5 11:15:00';