Re: dpkg/apt: Zu welchem Paket gehört eine Datei?
On Sat, 11 Jun 2005, Andreas Brillisauer wrote:
> ich suche nach einer Möglichkeit mit dpkg oder apt herauszufinden, zu
> welchem Paket eine beliebige Datei auf meinem Sarge-System gehört. So
> wie es mit "rpm -qf <file>" möglich ist.
Über "man dpkg" kommt der Verweis auf "man dpkg-query"
Und dort dann:
-S | --search filename-search-pattern ...
Search for a filename from installed packages. All standard shell wild-
chars can be used in the pattern. This command will not list extra files
created by maintainer scripts, nor will it list alternatives.
Beispiel:
$ dpkg -S /etc/nsswitch.conf
base-files: /etc/nsswitch.conf
Gegenprobe:
$ dpkg -L base-files | grep nsswitch
/etc/nsswitch.conf
t++
Reply to: