how to get a specfile from an RPM

Colin J Thomson - G6AVK colin at g6avk.demon.co.uk
Wed Aug 15 00:07:00 UTC 2007


On Wednesday 15 August 2007 00:24:58 Hale Boyes, Kevin wrote:
> Andy Green wrote:
> > Somebody in the thread at some point said:
> >> Given an RPM, is there a way to get the spec file that was used to
> >> build it?
> >
> > There's a copy of the .spec file in the SRPM, not in the binary RPM.
>
> I can see the file when I query the SRPM but
> how do I extract the .spec file from the SRPM?

You can use MC "Midnight Commander" to view/edit/copy 
files from a SRPM, just open/view it with MC. Check the 
contents of CONTENTS.cpio, then save the spec file.

HTH

Colin
-- 
Fedora 7 ("Moonshine")
Registered Linux user number #342953




More information about the users mailing list