dpkg Cheat Sheet

Description Command
Install package dpkg -i {package.deb}
Install all packages from a directory structure dpkg -R {directory}
Update package dpkg -i {package.deb}
List installed packages dpkg -l
List files in a package with their target paths dpkg -c {package.deb}
List files provided an installed package dpkg -L {package}
Determine the package that owns a file dpkg -S {/path/to/file}
Remove an installed package, but leave the config files dpkg -r {package}
Remove an installed package including config files dpkg -P {package}