I am on a MacBook Pro running Apple Leopard (Mac OS X 10.5.8).I would like to unpackage a RPM and view the files contained within the wget-1.11.4-2.el5_4.1.src.rpm . I don't need to install the files to a particular location or run any %postinstall scripts or anything. I just want to unpackage this RPM so that I can view the source files underneath.Is it possible to unpackage a RPM file on a non-RedHat/CentOS system?
Open a RPM on a Mac?
rhel;rpm;osx
You can install rpm through Darwin Ports or Fink or Mac Ports or even a Darwin port, rpm4darwin.To extract files from an rpm package without installing it, use the companion utility rpm2cpio, e.g.rpm2cpio foo.rpm | cpio -i -d There's also a portable rpm2cpio script if you don't want or can't get the version that's bundled with the rpm utility (the script may not work with older or newer versions of the rpm format though).