Chinaunix首页 | 论坛 | 博客
  • 博客访问: 836705
  • 博文数量: 109
  • 博客积分: 650
  • 博客等级: 上士
  • 技术积分: 1483
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-01 17:29
文章分类

全部博文(109)

文章存档

2016年(5)

2015年(21)

2014年(16)

2013年(38)

2012年(29)

分类: LINUX

2015-10-04 10:43:50

一.删除自带的yum

# rpm -aq|grep yum|xargs rpm -e --nodeps  
二.

三.安装rpm包

注:这里我为了方便就将所有提取出来的包放到我的VPS上供大家下载

# wget 

# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

# wget 

# rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

# wget 

# wget 

# rpm -ivh yum-3.2.29-30.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

注:这一步要两个一起安装,要不会会出现如下错误:

----------------------------------------------

# rpm -ivh yum-3.2.29-30.el6.centos.noarch.rpm

warning: yum-3.2.29-30.el6.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897

error: Failed dependencies:

yum-fastestmirror is needed by yum-3.2.29-30.el6.centos.noarch


# rpm -ivh yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

warning: yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897

error: Failed dependencies:

yum >= 3.0 is needed by yum-plugin-fastestmirror-1.1.30-14.el6.noarch

-----------------------------------------------

# wget 

# rpm -ivh PackageKit-yum-0.5.8-20.el6.x86_64.rpm

# wget 

# rpm -ivh PackageKit-yum-plugin-0.5.8-20.el6.x86_64.rpm


四.下载配置源:

# cd /etc/yum.repos.d/

# wget 


五.测试

# yum version

---------------------------------------------

Loaded plugins: fastestmirror, refresh-packagekit

Warning: RPMDB altered outside of yum.

Installed: 6/x86_64                1285:a2a18f0b8c3ca036a361579f6b22014aadfd680e

Group-Installed: yum                 14:45bb88c01e2346ba8fe7ac401a053cfd42bda739

version

----------------------------------------------

大功告成.....

阅读(1373) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~