yum の検索オプション
yum search
で rpm名などキーワードから該当するパッケージを探すことができる。
# yum search yumdownloader Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: mirror.vinahost.vn * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp ========================================================= Matched: yumdownloader ========================================================= yum-utils.noarch : Utilities based around the yum package manager
yum provides
でファイルがどのパッケージに含まれるか調べることができる。
どうやってインストールしたか分からなくなったコマンド調べる時に便利。
# yum provides "*/yumdownloader" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * epel: mirror.vinahost.vn * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp yum-utils-1.1.30-41.el6.noarch : Utilities based around the yum package manager Repo : base Matched from: Filename : /usr/bin/yumdownloader yum-utils-1.1.30-42.el6_10.noarch : Utilities based around the yum package manager Repo : updates Matched from: Filename : /usr/bin/yumdownloader yum-utils-1.1.30-42.el6_10.noarch : Utilities based around the yum package manager Repo : installed Matched from: Filename : /usr/bin/yumdownloader
ファイルの指定は */yumdownloader
か*bin/yumdownloader
の形式にしないとダメみたい。