Circa 2003-03-07 11:40:50 -0500 dixit Jeff Johnson: : On Fri, Mar 07, 2003 at 09:29:53AM -0700, Chris Ricker wrote: : > On Fri, 7 Mar 2003, Jeff Johnson wrote: : > : > > Use rpm2cpio to extract the payload, use cpio to extract the specfile, : > > is the basic approach. : > > : > > If you can figger a way to do this in one line on a pipe (i.e. without : > > creating atemporary file and copying with a glob), then *please* send : > > me a patch, and I'll add a popt alias to rpm. : > : > rpm2cpio foo.srpm | cpio -idm '*.spec' : > : > is what I always use.... : > : > > I gave up on cpio(1), far too many Baroque'n options :-) : > : > cpio syntax sucks ;-) : : Hmmm, dim memories start to come back. What stopped me is the ability : to extract to stdout so that the whole extraction could be done : without affecting file system. If extraction can be cone to stdout, : then it becomes possible to query spec files contained within src.rpm's : without having to fuss with cellophane wrappers and such. both cpio and pax can rename files interactively: cpio -i -d -m -r pax -r -i pax is also capable of modifying filenames on the fly using regexes: pax -r -s /old_pattern/new_pattern/g (same syntax as sed -e 's...'). -- jim knoble | email@example.com | http://www.pobox.com/~jmknoble/ (GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491) Stop the War on Freedom ... Start the War on Poverty!
Description: PGP signature