Why repoquery does not list files in a package

yum info eclipse-jdt shows package information. However, repoquery -lq eclipse-jdt does not show me which files are in this package, as shown in this decryption:

 [ tbrannon@oc bin]$ yum info eclipse-jdt Loaded plugins: fastestmirror refresh- : packagekit, security, versionlock Loading mirror speeds from cached hostfile KVM-WIN | 2.6 kB 00:00 RHEL-6-x86_64-openafs | 3.2 kB 00:00 RHEL-6-x86_64-rational-linux | 2.6 kB 00:00 RHEL-63-x86_64 | 3.7 kB 00:00 RHEL-63-x86_64-updates | 2.9 kB 00:00 Installed Packages Name : eclipse-jdt Arch : x86_64 Epoch : 1 Version : 3.6.1 Release : 6.13.el6 Size : 26 M Repo : installed From repo : RHEL-63-x86_64 Summary : Eclipse Java Development Tools URL : http://www.eclipse.org/ License : EPL Description : Eclipse Java Development Tools. This package is required to use : Eclipse for developing software written in the Java programming : language. [ tbrannon@oc bin]$ repoquery -lq eclipse-jdt [ tbrannon@oc bin]$ 
+6
source share
3 answers

You must enable repoquery plugins to work on Red Hat systems, otherwise it will not see packages from RHN. Try to run

 repoquery --plugins -l eclipse-jdt 
+4
source

You need to run root either via sudo and add the option --pkgnarrow=installed . The -q option does nothing, you can leave it alone. Try instead:

 repoquery -l eclipse-jdt --pkgnarrow=installed 
0
source

In my case, setting the proxy server allowed for congestion:

 # export HTTP_PROXY=http://proxy.spacely-sprockets.com:80 # export http_proxy=http://proxy.spacely-sprockets.com:80 # repoquery -i ... 
0
source

All Articles