Red hat 6使用 CentOS7 的yum和yum源

來源:互聯網
上載者:User

標籤:blank   justify   target   style   

  1. 刪除redhat原有的yum

rpm -aq|grep yum|xargs rpm -e nodeps

  1. 下載yum安裝檔案

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

Wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

  1. 安裝組件

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

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

後面2個以前裝的時候還失敗鳥

# rpm -ivh yum-plugin-fastestmirror-1.1.30-37.el6.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:

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

# 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

error: Failed dependencies:

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

You have new mail in /var/spool/mail/root

  1. 少python組件

下載

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm

# 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-9.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-9.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-9.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-9.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-9.el6.noarch

#

  1. 下載個python2.6重裝

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-2.6.6-64.el6.x86_64.rpm

#rpm -e python-2.6.6-52.el6.x86_64 nodeps

# rpm -ivh python-2.6.6-64.el6.x86_64.rpm

warning: python-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

python-libs(x86-64) = 2.6.6-64.el6 is needed by python-2.6.6-64.el6.x86_64

#

  1. 繼續修複依賴包

http://mirrors.163.com/centos/6/os/x86_64/Packages/python-libs-2.6.6-64.el6.x86_64.rpm

rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm

# rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm --nodeps

warning: python-libs-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

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

file /usr/lib64/libpython2.6.so.1.0 from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/CGIHTTPServer.py from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/CGIHTTPServer.pyc from install of python-libs-2.6.6-

file /usr/lib64/python2.6/distutils/sysconfig.pyc from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

file /usr/lib64/python2.6/lib-dynload/_fileio.so from install of python-libs-2.6.6-64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

64.el6.x86_64 conflicts with file from package python-libs-2.6.6-52.el6.x86_64

You have new mail in /var/spool/mail/root

  1. 好像出錯更多了,給你面子不要是吧,強制安裝

# rpm -ivh python-libs-2.6.6-64.el6.x86_64.rpm python-2.6.6-64.el6.x86_64.rpm --nodeps --force

warning: python-libs-2.6.6-64.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

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

1:python ########################################### [ 50%]

2:python-libs ########################################### [100%]

  1. Phtyon url 也要粗暴下

# 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-9.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-9.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-9.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-9.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-9.el6.noarch

# rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm --nodeps --force

warning: python-urlgrabber-3.9.1-11.el6.noarch.rpm: Header V3 RSA/SHA1 Signature, k

Red hat 6使用 CentOS7 的yum和yum源

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.