CentOS yum 替换掉 Redhat yum

前端之家收集整理的这篇文章主要介绍了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

原文链接:https://www.f2er.com/centos/381445.html

猜你在找的CentOS相关文章