[Rpm-maint] rpmtag for current arg/object or RFE?

L A Walsh rpm at tlinx.org
Sun Sep 23 23:54:23 UTC 2018


Is there a rpmtag to show the name of the file (or rpm) being used to 
get a specific answer:

like:
rpm -qf /usr/bin/{cp,rm,ln}, right now gives:
coreutils-8.23-2.3.2.x86_64
coreutils-8.23-2.3.2.x86_64
coreutils-8.23-2.3.2.x86_64

But no sign of what goes with what other than by hoping for a 1:1 
correspondence

Is there a switch or querytag that can give the corresponding file on 
the output line.  A behavior similar to grep would also help:

grep of one file:
>  grep "hi there" 1
hi there

grep of more than one:
>  grep "hi there" *
1:hi there
2:hi there
3:hi there



In a moderate sized  (~3250 files) directory, a wildcard used with rpm
took: 2.20sec 1.73usr 0.47sys (99.98% cpu)).

In the same directory doing the queries 1/file took:
67.98sec 47.48usr 20.92sys (100.62% cpu)

Thanks!
-linda



More information about the Rpm-maint mailing list