月曜日, 6月 15, 2009

What package is that file in on linux?

What package is that file in ?

Fedora
$ yum search #search for a file in any package (installed or not)
$ rpm -qf /path/to/file #installed package a file belongs to


Ubuntu
$ apt-file search autoexpect #search for a file in any package (installed or not)
$ dpkg -S #installed package a file belongs to


Mandriva
$ urpmf #search for a file in any package (installed or not)
$ rpm -qf /path/to/file #installed package a file belongs to




List package contents
Fedora
$ rpm -ql package #installed package

Ubuntu
$ dpkg -L package #installed package

Mandriva
$ rpm -ql package #installed package



参照:
Mandriva Package Management
Various Linux Package Operations

0 件のコメント: