On Scientific linux 6.0(RH like linux) I accidentally removed python, so yum removed as well.µ
How to install yum with rpm?
EDIT
I try to install python but it is somehow looped the dependences:
rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-libs-2.6.5-3.el6.x86_64.rpm
error: Failed dependencies:
python = 2.6.5-3.el6 is needed by python-libs-2.6.5-3.el6.x86_64
Then:
rpm -Uvh http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python
-2.6.5-3.el6.x86_64.rpm
Retrieving http://ftp2.scientificlinux.org/linux/scientific/6.0/x86_64/os/Packages/python-2.6.5-3.el6.x86_64.rpm
error: Failed dependencies:
libpython2.6.so.1.0()(64bit) is needed by python-2.6.5-3.el6.x86_64
Download the package(s) and type
rpm -Uvh <packagenames>
as root orsudo rpm -Uvh <packagenames>
as normal userI used
rpm -qpR yum-3.2.27-14.el6.noarch.rpm
to get a list of dependencies for yum, hope that gets all off them in one go:Download all the packages with the following code block:
Install them as follows: