Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How to install rpm tool on OS X?

Brew doesn't have it yet and the binaries I found so far are too old (not intel 64bit).

share|improve this question
    
What packages do you need rpm for? –  Gerry Sep 11 '12 at 11:37
    
I need RPM just to be able to get some information out of RPM files, not for installing stuff. –  sorin Sep 11 '12 at 11:41

3 Answers 3

Check into getting rpm2cpio and cpio programs as noted in How to extract RPM package without installing it

Extract RPM file:

To extract an RPM file there is no option available in RPM command. But there is a small utility availble called rpm2cpio and cpio. This utility extracts the cpio archive from RPM. rpm2cpio converts the .rpm file specified as a single argument to a cpio archive on standard out.

Both are available in MacPorts, as noted in this cpio search. Additionally you could build both the programs from source manually as noted from there respective sources if you can't find a working solution on MacPorts or homebrew:

share|improve this answer

I'd recommend using something like VirtualBox and installing an rpm-based OS, assuming you're just looking to use things like rpmbuild. CentOS works nicely.

share|improve this answer
up vote 0 down vote accepted

I ended-up installing macports and using it to install rpm (port install rpm)

It took about an hour to compile all the dependencies, even if I do have 4 cores and a SSD.

share|improve this answer

Your Answer

 
discard

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.