Re: build requires query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 24 Feb 2010, 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?

The requires of an src.rpm *are* the BuildRequires. But do note that the buildrequires recorded in an src.rpm are subject to build-conditionals that were active at the time the src.rpm was generated.

Eg if you have
%ifarch ppc64
BuildRequires: libppc-devel
%endif

...then the requires from src.rpm depend on which arch the src.rpm was generated on.

	- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux