JAEN

Linux

dpkg

SafeQuery deb packages

dpkg -l | grep <pkg>

Lists/queries installed debs. -S maps files to packages; -i installs a local .deb.

Examples

  • dpkg -S /usr/sbin/nginxFind owning package

Syntax

dpkg [-l] [-S file] [-i file.deb]

Before you run it

Queries safe; -i may leave broken deps.

Related commands

  • aptDebian/Ubuntu packages
  • whichLocate a command

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store