Ask Different is a question and answer site for power users of Apple hardware and software. 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

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
brew install rpm2cpio now works [then you have the command available to you – rogerdpack Apr 2 '15 at 22:16
up vote 4 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
Mac ports now provides binary downloads (albeit the Yosemite server has not competed the compiles yet) – Mark Nov 10 '14 at 18:11

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

brew install rpm will work. It downloads all the dependencies; though it takes lot of time to compile the packages

share|improve this answer

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

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.