<p>hello all,<br></p><p>firstly, i have a particular need to quickly query for package info given a batch of files so, i&#39;ve tried the following:</p><p>rpm -qf `cat files.list` --nodigest --nosignature</p><p>where files.list contains approximately 650 files. this query took 1s on my machine to complete while repeatedly invoking the same query for each filename took 1 min.  however, rpm man page doesn&#39;t mention the -f (--file) option can take a list of files so i&#39;m quite hesitant to use this in my script. can i reliably depend on this behavior?</p>
<p>secondly, i&#39;d like to have the package name and the filename used in the query to be printed in the format &lt;package-name&gt;:&lt;filename&gt;, so i&#39;ve added a --qf &#39;%{NAME}:%{FILENAMES}\n&#39; to the query. this does what i want but it seems like a strange thing to do as FILENAMES is a list and should be enclosed in the [ ] brackets.  i&#39;ve read the doc and my usage should output something similarly to &lt;package-name&gt;: (array)  instead.  how can i print out the package name and filename properly?  thanks alot.</p>
<p>cheers,</p><p>tan</p>