Debian/Ubuntu cheat sheet

Tags: •  • 

Find packages that contain a file

apt-file search "somefile"

List all installed packages

% apt-cache pkgnames
% dpkg -l

List files owned by package

% dpkg -L <i>pkg</i>

What package owns a file

% dpkg -S <i>/path/to/file</i>

Display package information

% dpkg -p <i>pkg</i>