微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CentOS yum 替换掉 Redhat yum

1 确定当前系统的架构

[root@jack 桌面]# arch

i686

说明是32位操作系统,选择x86目录

x86 地址:http://mirrors.163.com/centos/6/os/i386/Packages/

x86_64 地址:http://mirrors.163.com/centos/6/os/x86_64/Packages/

请确保下载正确的版本,否则会出现如下的错误

rpm -ivh yum-Metadata-parser-1.1.2-16.el6.x86_64.rpm

warning: yum-Metadata-parser-1.1.2-16.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature,key ID c105b9de: NOKEY

error: Failed dependencies:

libc.so.6()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libc.so.6(GLIBC_2.2.5)(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libglib-2.0.so.0()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libpthread.so.0()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libpython2.6.so.1.0()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libsqlite3.so.0()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libxml2.so.2()(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64

libxml2.so.2(LIBXML2_2.4.30)(64bit) is needed by yum-Metadata-parser-1.1.2-16.el6.x86_64


rpm -ivh yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm yum-3.2.29-73.el6.centos.noarch.rpm

warning: yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm: Header V3 RSA/SHA1 Signature,key ID c105b9de: NOKEY

error: Failed dependencies:

python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch

当前一斤安装的版本

[root@jack workplace]# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature,key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.py from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-8.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-8.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/grabber.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-8.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyc from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-8.el6.noarch

file /usr/lib/python2.6/site-packages/urlgrabber/progress.pyo from install of python-urlgrabber-3.9.1-11.el6.noarch conflicts with file from package python-urlgrabber-3.9.1-8.el6.noarch

[root@jack workplace]# arch

i686

[root@jack workplace]# rpm -qa |grep urlgrabber

python-urlgrabber-3.9.1-8.el6.noarch


[root@jack workplace]# rpm -e python-urlgrabber-3.9.1-8.el6.noarch

error: Failed dependencies:

urlgrabber is needed by (installed) python-virtinst-0.600.0-8.el6.noarch

python-urlgrabber is needed by (installed) python-virtinst-0.600.0-8.el6.noarch

[root@jack workplace]# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm --force

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature,key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

1:python-urlgrabber ########################################### [100%]

[root@jack workplace]# rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature,key ID c105b9de: NOKEY

Preparing... ########################################### [100%]

1:yum-plugin-fastestmirro########################################### [ 50%]

2:yum ########################################### [100%]

2 下载文件

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

python-urlgrabber-3.9.1-11.el6.noarch.rpm

yum-3.2.29-73.el6.centos.noarch.rpm

yum-Metadata-parser-1.1.2-16.el6.i686.rpm

yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native
centos6.5下postgres-XC集群安装与配置
CentOS 6使用openssl搭建根CA
CentOS6.6中安装VNC server
CentOS下更新Python最新版本