which package a file belongs to

Ansgar Burchardt ansgar at 2008.43-1.org
Sat Jan 17 21:56:36 UTC 2009


frmas <frmas at free.fr> writes:
> I'm looking for the tool (dpkg ?) and command line parameters, that will
> give me the package (name and version), a file on my HD belongs to.
> Something like :
> dpkg --search | grep /usr/bin/nedit ??
> Result : nedit_1.5.5-2ubuntu3.deb

The command `dpkg -S /usr/bin/nedit' will tell you the package name and
then you can use `dpkg -l [package]' to get the installed version.


PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19

More information about the ubuntu-users mailing list