6

yum info eclipse-jdt显示有关包的信息。但是,repoquery -lq eclipse-jdt并没有显示该包中有哪些文件,因为此脚本显示:

[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]$ 
4

3 回答 3

4

您必须为 repoquery 启用插件才能在 Red Hat 系统上工作,否则它不会看到来自 RHN 的软件包。尝试运行

repoquery --plugins -l eclipse-jdt
于 2013-09-28T03:36:37.953 回答
0

您需要以 root 身份或通过 sudo 运行并添加选项--pkgnarrow=installed。该-q选项没有任何作用,您可以将其排除在外。试试这个:

repoquery -l eclipse-jdt --pkgnarrow=installed
于 2013-03-28T23:22:48.437 回答
0

就我而言,设置代理解决了 repoquery 挂起:

# export HTTP_PROXY=http://proxy.spacely-sprockets.com:80
# export http_proxy=http://proxy.spacely-sprockets.com:80
# repoquery -i ...
于 2015-02-19T16:27:23.107 回答