ファイル名から、
それがどのパッケージに含まれるのか調べたい場合。
CentOS、SLの場合
yum provides /path/ファイル名
Debian、Ubuntuの場合
dpkg -S /path/ファイル名
例えば、
/etc/ntp.conf
がどのパッケージに含まれるのか調べてみる。
CentOS、SLの場合
# yum provides /etc/ntp.conf ntp/ ntp.conf [root@log neko6]# yum provides /etc/ntp.conf Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * sl: ftp.jaist.ac.jp * sl-security: ftp.jaist.ac.jp ntp-4.2.4p8-2.el6.x86_64 : The NTP daemon and utilities Repo : sl Matched from: Filename : /etc/ntp.conf ntp-4.2.4p8-2.el6.x86_64 : The NTP daemon and utilities Repo : installed Matched from: Other : Provides-match: /etc/ntp.conf
結構詳しく出力されますね。
Debian、Ubuntuの場合
# dpkg -S /etc/ntp.conf ntp: /etc/ntp.conf
これだけかw
もしくは、Debian、Ubuntuの場合、
デフォルトでインストールされていませんが、
apt-file
でも探せるのでどうぞ。
[tegaki]久々の更新。。。[/tegaki]