I have a Centos 6 based VPS with an ssh connection. Recently wanting to install python 2.7.2, I bravely ran:
yum remove python
which apparently removed yum itself being written or depends on python.
Now I don't know what to do and to make matters worse, I am a complete Linux newbie (command line or otherwise).
rpm -iv http://centos.mirrors.hoobly.com/6.0/os/x86_64/Packages/python-2.6.5-3.el6.x86_64.rpm gives:
Retrieving http://centos.mirrors.hoobly.com/6.0/os/x86_64/Packages/python-2.6.5-3.el6.x86_64.rpm Preparing packages for installation... package python-2.6.5-3.el6.x86_64 is already installed
and its a x86_64 server no question about it as "uname -a" gives:
Linux xxxxxx 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
One more thing:
ls /usr/bin/pyth* -la gives:
lrwxrwxrwx 1 root root 6 Dec 4 20:31 python2 -> python -rwxr-xr-x 2 root root 4864 Nov 12 2010 python2.6 -rwxr-xr-x 2 root root 4864 Nov 12 2010 python;4edbd894