CentOS yum upgrade Python 2.6 to 2.7

CentOS system comes python2.6.6 by yum upgrade to python2.7

1.Install Upgrade
wget http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm  
wget http://li.nux.ro/download/nux/dextop/el6/i386/nux-dextop-release-0-2.el6.nux.noarch.rpm 
rpm -ivh nux-dextop-release-0-2.el6.nux.noarch.rpm
yum -y install python27 
yum -y install python27-devel
2. Modify a default to python2.7
cd /usr/bin/
rm -rf python cp python2.7 python
3. Solve yum upgrade can not be used after python 2.7
    vi /usr/bin/yum (first line) #!/usr/bin/python Modified to #!/usr/bin/python2.6 (python of the original old version)

Pingbacks are closed.