LoginSignup
10

More than 5 years have passed since last update.

YUM WHATPROVIDESのすすめ

Posted at

Yum whatprovidesの紹介

yumで特定のパッケージを検索するとき、yum searchやyum listは有名ですが、yum whatprovidesというコマンドもあります。

例えばlibyamlを検索するとき、それぞれこんな感じで実行できます。

yum search libyaml

yum list libyaml

yum whatprovides libyaml

yum search libyaml
2017-02-05_yum1.png

yum list libyaml
2017-02-05_yum2.png

yum whatprovides libyaml
2017-02-05_yum3.png

更にyum whatprovidesはファイルがどのパッケージからインストールされるのかを検索することも可能です。

yum whatprovides '*lib64/libyaml-0.so.2'

2017-02-05_yum4.png

CentOS・RHELでyumでの構築時に依存パッケージをみつからなくて困ったとき、yum whatprovidesはとても重宝します。

参考URL:
http://yum.baseurl.org/wiki/YumCommands

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10