Difference between revisions of "Apt-get/dpkg"
From Briki
(→Command Summary) |
(→Command Summary) |
||
Line 1: | Line 1: | ||
== Command Summary == | == Command Summary == | ||
− | * apt-get | + | * apt-get - install and remove stuff |
*; apt-get install ''package'' : install package | *; apt-get install ''package'' : install package | ||
*; apt-get update : update sources | *; apt-get update : update sources | ||
Line 8: | Line 8: | ||
*; apt-get remove ''package'' : remove package | *; apt-get remove ''package'' : remove package | ||
− | * apt-cache | + | * apt-cache - find information on packages |
*; apt-cache search ''regexp'' : search packages names and descriptions for ''regexp'' | *; apt-cache search ''regexp'' : search packages names and descriptions for ''regexp'' | ||
*; apt-cache show ''package'' : show package info | *; apt-cache show ''package'' : show package info | ||
− | * apt-file | + | * apt-file - look for files contained within packages |
*; apt-file update : update file contents lists | *; apt-file update : update file contents lists | ||
*; apt-file search ''string'' : search package contents for file name/path containing ''string'' | *; apt-file search ''string'' : search package contents for file name/path containing ''string'' | ||
*; apt-file list ''package'' : list files in ''package'' | *; apt-file list ''package'' : list files in ''package'' | ||
− | * dpkg | + | * dpkg - information on installed packages |
*; dpkg -s ''package'' : show status of package | *; dpkg -s ''package'' : show status of package | ||
*; dpkg -L ''package'' : list files in package | *; dpkg -L ''package'' : list files in package |
Revision as of 13:13, 7 September 2007
Command Summary
- apt-get - install and remove stuff
- 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 - find information on packages
- apt-cache search regexp
- search packages names and descriptions for regexp
- apt-cache show package
- show package info
- apt-file - look for files contained within packages
- 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 - information on installed packages
- 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 -