Apt-get/dpkg
From Briki
Command Summary
- apt-get
- apt-get install package
- install package
- apt-get update
- update sources
- apt-get upgrade
- upgrade all upgradeable packages
- apt-get dist-upgrade
- upgrade all upgradeable packages, including installing new packages where dependencies have changed
- apt-get remove package
- remove package
- apt-cache
- apt-cache search regexp
- search packages names and descriptions for regexp
- apt-cache show package
- show package info
- apt-file
- apt-file update
- update file contents lists
- apt-file search string
- search package contents for file name/path containing string
- apt-file list package
- list files in package
- dpkg
- dpkg -s package
- show status of package
- dpkg -L package
- list files in package
- dpkg --get-selections
- list all installed packages
Solving public key errors
Errors like:
W: GPG error: http://packages.freecontrib.org edgy-plf Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F120156012B83718 W: You may want to run apt-get update to correct these problems
can be fixed by finding out the location for the relevant sites public key, and installing the key using:
wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add -