Super User is a question and answer site for computer enthusiasts and power users. 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

I am trying to install yum utility on my centos 4 system that doesn't have any rpm utility or build-essentials

share|improve this question

migrated from Mar 29 '11 at 1:32

This question came from our site for professional and enthusiast programmers.

How did you come into possession of such a badly-broken system? – Ignacio Vazquez-Abrams Mar 29 '11 at 9:45

I never did it, but should be possible:

Install the rpm rpm without rpm;-) I mean the rpm file, containing the rpm, but not with the rpm command.

RPM files contain their files in compressed format that you can unpack, see "rpm2cpio" for help. If you get rpm running again, the rest should be a piece of cake...

share|improve this answer

Harvest the binary /bin/rpm from a similar system, also get all the libraries needed by rpm using ldd /bin/rpm. tar the lot up and untar it on your system.

share|improve this answer

You must log in to answer this question.