no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | dpkg [2017/06/28 22:28] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== dpkg ====== | ||
| + | * [[Ubuntu]] | ||
| + | * [[apt-get]] | ||
| + | * [[aptitude]] | ||
| + | |||
| + | == Install a .deb file == | ||
| + | |||
| + | < | ||
| + | dpkg -i dropbox_2015.10.28_amd64.deb | ||
| + | </ | ||
| + | |||
| + | == Display installed packages == | ||
| + | |||
| + | < | ||
| + | |||
| + | == Display files installed by a package == | ||
| + | |||
| + | < | ||
| + | |||
| + | == Display installed version of a package == | ||
| + | |||
| + | < | ||
| + | |||
| + | == Find package owner for a file == | ||
| + | |||
| + | < | ||
| + | dpkg -S /bin/bash | ||
| + | </ | ||
| + | |||
| + | == Reinstall files from a package == | ||
| + | |||
| + | May be needed when you delete a vanilla configuration file: | ||
| + | |||
| + | < | ||
| + | apt-get -o Dpkg:: | ||
| + | </ | ||
| + | |||
| + | == Force remove package in inconsistent state == | ||
| + | |||
| + | < | ||
| + | dpkg --remove --force-remove-reinstreq < | ||
| + | </ | ||