getting compile flags from an rpm

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

>>>>> "Sam" == Sam Couter <scouter at> 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.


More information about the linux mailing list