Re: A question about --queryformat

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

 



On Tue, Dec 30, 2003 at 12:12:55PM -0500, Tom Diehl wrote:

> They both return /etc/auto.master for the filename. Is there a way to have
> rpm display the filename I am querying in the output?? Can someone tell
> me what the filename querytag is really displaying??

%{filenames} is a list of all the files belonging to the package, you are getting the first element:
                                                                                        
rpm -qf --qf '[%{name} %{filenames}\n]' /etc/auto.misc

AFAIK there is no tag which corresponds to the file/package that is being queried with qp/qf

You could do something like:

for file in /etc/auto.misc; do  rpm -qf --qf "%{name} $file\n" $file; done

Paul


_______________________________________________
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