[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Extract spec file from rpm?



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

later,
chris





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []