On Mon, 20 Jan 2003, Jeremy McNicoll wrote:

> Is there a way to take a existing RPM and group together all the files
> that belong to it into a tar?  What I mean is that I have an rpm and I
> changes to the files inside it, can I take the files that the RPM
> contains with path etc and send to tar to get the necessary files for
> me?  
> 
> So for example I have a rpm called foo.rpm it contains /etc/blah.txt, I
> went and changed /etc/blah.txt now I want to tar it up so that I can
> make a new rpm with the changes..
> 
> I want to take all the files that are in foo.rpm from my current version
> and make a new rpm called foo2.rpm.   

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

You'll now have a tree of files which you can use as the basis of your
new tarball.

-- 
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