wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgz
tar zxvf Python-2.7.8.tgz 
cd Python-2.7.8
./configure --prefix=/usr/local/python27
make & make install
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python27/bin/python /usr/bin/

修改yum

 vim /usr/bin/yum 
#!/usr/bin/python_old

 

posted on 2015-03-23 16:24  凌度  阅读(282)  评论(0编辑  收藏  举报