Postgresql-8.0.1

Paul Howarth paul at city-fan.org
Tue Feb 8 19:15:38 UTC 2005


On Tue, 2005-02-08 at 12:35 -0600, Rodolfo J. Paiz wrote:
> On Mon, 2005-02-07 at 18:43 -0500, Robert L Cochran wrote:
> > Can someone tell me how to extract just one or two files from an RPM?
> > 
> 
> I believe cpio does this.

When used in conjunction with rpm2cpio (which there is a brief manpage
for).

Example:
$ rpm2cpio kernel-2.6.5-1.358.i586.rpm | cpio -i -d --no-absolute-
filenames '*advansys.ko'

which I used to extract
lib/modules/2.6.5-1.358/kernel/drivers/scsi/advansys.ko from
kernel-2.6.5-1.358.i586.rpm.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list