特定のシェルコマンドを使用したパッケージの検索

特定のシェルコマンドを使用したパッケージの検索

同じシェルコマンドで実行される複数のパッケージがインストールされていると思います。 1つは知っていますが、もう1つはインストールした記憶がぼやけて削除できません。お互いに問題を起こしているようで、思い出せないものを取り除く必要があります。特定のシェルコマンドを使用してどのパッケージが呼び出されたかを簡単に見つける方法はありますか?これはRHEL 6.5にあります。

ベストアンサー1

努力する:

yum whatprovides <command>

からman yum

provides or whatprovides
              Is used to find out which package provides some feature or file.
              Just use a specific name or a file-glob-syntax wildcards to list
              the packages available or installed that provide that feature or
              file.

例:

yum whatprovides /bin/ls
coreutils-5.97-34.el5_8.1.x86_64 : The GNU core utilities: a set of tools
                                 : commonly used in shell scripts
Repo        : base
Matched from:
Filename    : /bin/ls



coreutils-5.97-34.el5_8.1.x86_64 : The GNU core utilities: a set of tools
                                 : commonly used in shell scripts
Repo        : installed
Matched from:
Other       : Provides-match: /bin/ls

おすすめ記事