码迷,mamicode.com
首页 > 编程语言 > 详细

centos6.x安装yum及python依赖包

时间:2017-11-09 16:27:19      阅读:478      评论:0      收藏:0      [点我收藏+]

标签:1.3   mirrors   lib   xargs   ror   etc   1.2   parse   dev   

步骤1:清空python
rpm -qa|grep python|xargs rpm -e --allmatches --nodeps

whereis python|xargs rm -fr


步骤2:清空yum
rpm -qa|grep yum|xargs rpm -e --allmatches --nodeps

rm -rf /etc/yum.repos.d/*

whereis yum|xargs rm -fr

步骤3:安装python

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-2.6.6-66.el6_8.x86_64.rpm

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

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-pycurl-7.19.0-9.el6.x86_64.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-devel-2.6.6-66.el6_8.x86_64.rpm

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/python-libs-2.6.6-66.el6_8.x86_64.rpm

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

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/rpm-python-4.8.0-55.el6.x86_64.rpm


步骤4:|rpm安装包
rpm -ivh python-* rpm-python-*

 

步骤5:


wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm

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

wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm


步骤6:安装rpm包

rpm -ivh yum-*

 

centos6.x安装yum及python依赖包

标签:1.3   mirrors   lib   xargs   ror   etc   1.2   parse   dev   

原文地址:http://www.cnblogs.com/Carr/p/7809859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!