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

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



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

--Paul Heinlein <heinlein@cse.ogi.edu>




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