Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Scientific linux 6.0(RH like linux) I accidentally removed python, so yum removed as well.µ

How to install yum with rpm?


I try to install python but it is somehow looped the dependences:

rpm -Uvh
    error: Failed dependencies:
            python = 2.6.5-3.el6 is needed by python-libs-2.6.5-3.el6.x86_64


 rpm -Uvh
error: Failed dependencies: is needed by python-2.6.5-3.el6.x86_64
share|improve this question
up vote 4 down vote accepted

Download the package(s) and type rpm -Uvh <packagenames> as root or sudo rpm -Uvh <packagenames> as normal user

I 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:

wget \ \ \ \ \ \ \ \

Install them as follows:

rpm -Uhv py*.rpm \
   yum*.rpm \
share|improve this answer
I'm going to guess that if the OP managed to uninstall yum(?!?), they probably need a bit of guidance as to the required contents of <packagename>. – womble Aug 3 '11 at 13:15
he won't learn if there is no pain ;) – Sgaduuw Aug 3 '11 at 13:16
working on expanding the answer to be a bit more helpful.. – Sgaduuw Aug 3 '11 at 13:24
Thenks for replay,but your workaround does not help, see my edit. – Arman Aug 3 '11 at 13:26
@Arman, give me a minute, trying to account for all your lost packages – Sgaduuw Aug 3 '11 at 13:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.