Re: how to find out the binary package names generated from a source rpm?

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

 



On Tue, 2003-12-09 at 00:08, Simon J Mudd wrote:
> Hello All,
> 
> How do I find the name(s) of the binary packages built from a source rpm?
> 
> I know that rpm -q --queryformat "%{NAME}" package gives you the name of
> the binary package.
> rpm -qp --queryformat "%{NAME}" somepackage.src.rpm gives you the
> same information from a source rpm.
> 
> If a source rpm builds many binary rpm packages how do I get out the
> list of binary packages produced?
> 
> Thanks for any pointers.

You can get the binary package names by extracting the .spec out of the
src.rpm and do a query on that:
[pmatilai@chip SPECS]$ rpm -q --specfile php.spec
php-4.2.2-16
php-devel-4.2.2-16
php-imap-4.2.2-16
php-ldap-4.2.2-16
php-manual-4.2.2-16
php-mysql-4.2.2-16
php-pgsql-4.2.2-16
php-odbc-4.2.2-16
php-snmp-4.2.2-16

	- Panu -


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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