getting compile flags from an rpm

Ben Elliston bje at redhat.com
Wed Feb 20 17:05:25 EST 2002


>>>>> "Sam" == Sam Couter <scouter at bigpond.net.au> writes:

  Sam> I don't know of any way of getting the spec file or any of the build
  Sam> options from a binary RPM. You need the source RPM for that.

When you do have it, you can get the .spec file by running rpm2cpio on
the RPM file and then unpacking the resulting cpio archive.

Ben




More information about the linux mailing list