Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


dpkg (Debian package manager), is a tool to install, build, remove and manage Debian packages. The primary and more user-friendly front end for dpkg is apt.

Table of content


  • Check if packagename is installed:

    $ dpkg-query -l packagename
    $ dpkg -s packagename

  • Find what package owns a command:

    $ dpkg -S `which <command>`

If this cheat sheet has been useful to you, then please consider leaving a star here.