On Tue, 21 Jan 2003, Charlie Brady wrote:

> 
> On Tue, 21 Jan 2003, Peter Samuel wrote:
> 
> > You can extract the files in an rpm using rpm2cpio. Then you can use
> > that to build a new tarball.
> > 
> >     cd /var/tmp
> >     mkdir foo-1.1
> >     cd foo-1.1
> >     rpm2cpio foo-1.1.noarch.rpm | cpio -iv
> 
> I think you'll find you need the -d option to cpio - "cpio -idv".

Depends on your version of cpio. My tests showed it wasn't necessary

rpm -q rpm cpio
    rpm-4.0.4-7x.18
    cpio-2.4.2-26

-- 
Regards
Peter
----------
Peter Samuel, Senior Systems Administrator  [EMAIL PROTECTED]
http://www.e-smith.org (development)        http://www.mitel.com (corporate)
Phone: +1 613 592 2122                      Fax: +1 613 592 1175
Mitel Networks, 350 Legget Dr, Ottawa, ON K2K 2W7 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to