how to get a specfile from an RPM

Steven W. Orr steveo at syslang.net
Thu Aug 16 20:42:16 UTC 2007


On Tuesday, Aug 14th 2007 at 17:24 -0600, quoth Hale Boyes, Kevin :

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

rpm -i file.src.rpm

The spec file will land in /usr/src/redhat/SPECS




More information about the fedora-list mailing list