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
(see man cpio).
Hoping this helps! Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-May-07 Time: 17:01:46 ------------------------------ XFMail ------------------------------