ksaitoの日記

日々試したことの覚え書き

yumでファイル名からパッケージを探す

移転しました。

自動的にリダイレクトします。

ファイル名からパッケージを探す方法です。
yumのwhatprovidesコマンドでパッケージ名が表示されます。
aptのapt-fileより便利かも

$ yum whatprovides libodbc.so.2
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
unixODBC-2.2.14-11.el6.i686 : A complete ODBC driver manager for Linux
Repo        : base
Matched from:
Other       : libodbc.so.2