This is quite annoying to me since when you ask rpm about ownership of a file, you always need to have the -q there. And when the file is not found locally, in past I could just replace rpm -qf with repoquery -qf. 


Steps to Reproduce:
[root@ci-vm-10-0-139-5 ~]# rpm -q yum
yum-3.4.3-167.el7.noarch
[root@ci-vm-10-0-139-5 ~]# repoquery -qf file 
file-0:5.11-36.el7.x86_64


[root@ci-vm-10-0-139-182 ~]# rpm -q yum
yum-4.2.17-6.el8.noarch
[root@ci-vm-10-0-139-182 ~]# repoquery -qf file 
Failed to set locale, defaulting to C.UTF-8
usage: repoquery [-c [config file]] [-q] [-v] [--version]
                 [--installroot [path]] [--nodocs] [--noplugins]
                 [--enableplugin [plugin]] [--disableplugin [plugin]]
                 [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken]
                 [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]]
                 [-d [debug level]] [--debugsolver] [--showduplicates]
                 [-e ERRORLEVEL] [--obsoletes]
                 [--rpmverbosity [debug level name]] [-y] [--assumeno]
                 [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]]
                 [--enable | --disable] [-x [package]]
                 [--disableexcludes [repo]] [--repofrompath [repo,path]]
                 [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh]
                 [-4] [-6] [--destdir DESTDIR] [--downloadonly]
                 [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage]
                 [--security] [--advisory ADVISORY] [--bz BUGZILLA]
                 [--cve CVES]
                 [--sec-severity {Critical,Important,Moderate,Low}]
                 [--forcearch ARCH]
Command line error: argument -q/--quiet: ignored explicit argument 'f'



Source link

Write a comment:
*

Your email address will not be published.