Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Mar 29 '11 at 1:32

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

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

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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