rpm、yum、repoqueryのパッケージに対する矛盾した回答

rpm、yum、repoqueryのパッケージに対する矛盾した回答

RHEL 6.5システムには、次のような奇妙な動作を示すいくつかのパッケージがあります。

  1. ソフトウェアパッケージがインストールされました。
  2. rpm -qパッケージがインストールされたことを報告します。
  3. yum searchパッケージが使用可能であることを示します。
  4. しかし、repoquery --whatprovides何も出力されません。

一例:

$ yum install boost-openmpi
Loaded plugins: dellsysid, product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Nothing to do
$ rpm -q boost-openmpi
boost-openmpi-1.41.0-18.el6.x86_64
$ yum search boost-openmpi
Loaded plugins: dellsysid, product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
==================================================================================== N/S Matched: boost-openmpi ====================================================================================
boost-openmpi.x86_64 : Runtime component of Boost.MPI library
boost-openmpi-devel.x86_64 : Shared library symlinks for Boost.MPI
boost-openmpi-python.x86_64 : Python runtime component of Boost.MPI library

  Name and summary matches only, use "search all" for everything.
$ repoquery --plugins --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}"   --all --quiet --whatprovides boost-openmpi
$

最後のコマンドがパッケージが存在し、他のすべてがインストールされていると報告した場合は、何かを返す必要があるというyumなどを正しく理解していますか? (システムにインストールされている他のほとんどすべてのパッケージもこの手順でrepoquery内容を報告します。)私が理解したことが正しい場合は、repoqueryがパッケージを再検索できるように問題を解決するにはどうすればよいですか。

ベストアンサー1

yum searchはインストールされているパッケージも見ています。追加情報(たとえば、見つかった場所など)を取得するには、「yum search -v」を使用してください。私の考えでは、これらはインストールされていますが使用できないようです。 「yum list extras」(または「yum list distro-extras」の方が良いがel6では利用できないようです)を使って簡単に確認できます。

おすすめ記事