標籤:blank justify target style
- 刪除redhat原有的yum
rpm -aq|grep yum|xargs rpm -e nodeps
- 下載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
- 安裝組件
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
- 少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
#
- 下載個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
#
- 繼續修複依賴包
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
- 好像出錯更多了,給你面子不要是吧,強制安裝
# 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%]
- 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源