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]

 



heinlein@xxxxxxxxxxx (Paul Heinlein) writes:

> On Mon, 8 Dec 2003, Simon J Mudd wrote:
> 
> > If a source rpm builds many binary rpm packages how do I get out the
> > list of binary packages produced?
> 
> I can only think of a hack, and a slow one at that:
> 
>   srcrpm=foo-1.0.0-2.src.rpm
>   cd /path/to/RedHat/RPMS
>   rpm -q --qf '%{SOURCERPM}:%{NAME}\n' -p *.rpm |\
>     grep ^$srcrpm |\
>     cut -d: -f1

Ok. So there is a SOURCERPM tag and also a NAME target. %{NAME} is
therefore the binary package name? and can be enumerated more than
once.

I will look at this further thanks.

Simon


_______________________________________________
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