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.
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 ------------------------------
On Wed, 2007-05-23 at 17:02 +0100, ted.harding@nessie.mcc.ac.uk wrote:
An RPM package is basically a wrapped-up CPIO archive.
You should probably have (and if not, get it from somewhere) the program rpm2cpio.
Note that the standard binary rpm2cpio needs the rest of the rpm package installed in order to work.
What you want is the perl script available at
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!
On Wed, 2007-05-23 at 16:37 +0100, Chris G wrote:
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?
There are many ways to do it, but my favourite is to use mc (midnight commander) which will let you open them and copy the files you need out.
Rgds Wayne