Difference between revisions of "Apt-get/dpkg"
From Briki
Line 1: | Line 1: | ||
+ | == Command Summary == | ||
+ | |||
* apt-get | * apt-get | ||
*; apt-get install ''package'' : install package | *; apt-get install ''package'' : install package | ||
Line 18: | Line 20: | ||
*; dpkg -L ''package'' : list files in package | *; dpkg -L ''package'' : list files in package | ||
*; dpkg --get-selections : list all installed packages | *; dpkg --get-selections : list all installed packages | ||
+ | |||
+ | == Solving public key errors == | ||
+ | |||
+ | Errors like: | ||
+ | <pre> | ||
+ | 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 | ||
+ | </pre> | ||
+ | can be fixed by finding out the location for the relevant sites public key, and installing the key using: | ||
+ | <pre> | ||
+ | wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add - | ||
+ | </pre> |
Revision as of 12:01, 15 October 2006
Command Summary
- apt-get
- apt-get install package
- install package
- apt-get update
- update sources
- apt-get upgrade
- upgrade all upgradeable packages
- 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 -