build requires query?

Radu Gasler rgasler at streamwide.ro
Fri Feb 26 13:53:07 UTC 2010


Hello Todd,

A possible solution: If you have the src.rpm you can extract the spec 
file and search for BuildRequires within it:

rpm2cpio {FullNameOfRPM} | cpio --to-stdout -iu {NameOfRPM.spec} | grep 
'BuildRequires'

Regards,
Radu

On 02/25/2010 02:27 AM, Todd Rinaldo wrote:
> If I want to know what pre-requisites a src.rpm has, I can do
>
> rpm -qpR file.src.rpm
>
> This seems to tell me the Requires values. How can I get the BuildRequires values?
>
> Thanks,
> Todd
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>    



More information about the Rpm-list mailing list