On Wed, May 23, 2007 at 05:02:10PM +0100, Ted Harding wrote:
On 23-May-07 15:37:04, Chris G wrote:
I want to extract some files from an rpm package but I don't have an rpm database on my slackware box so I can't just do "rpm -i <name>".
As far as I know the package only has three files in it, a python script and some documentation. I just want those files. How can I get them?
I've searched around using Google and this particular program seems only to exist as an rpm.
-- Chris Green
An RPM package is basically a wrapped-up CPIO archive.
You should probably have (and if not, get it from somewhere) the program rpm2cpio.
Usage: rpm2cpio rpmfile.rpm > cpiofile
Then use cpio to extract what you want from cpiofile
Exactly what I needed, I do have rpm2cpio, thanks!