Table of Contents
- DPKG / APT-GET basics
- query for packages
- details of packages
- search for packages that provide a certain file
- remove a package
- install a local package
- download and install a package
- update the package database
- upgrade all packages to their newest version
- search for a certain package
- adding pgp/gpg-signature for a certain repository
DPKG / APT-GET basics
query for packages
dpkg-query -W "*spam*" ... simple output dpkg-query -l "*spam*" ... detailed output
see apt-cache search below for a more intense search
details of packages
dpkg-query -s spampd ... list status of package dpkg-query -L spampd ... list all files of this package
search for packages that provide a certain file
dpkg-query -S smb.conf
remove a package
dpkg -r spampd ... remove the package dpkg -P spampd ... purge the package including config-files
install a local package
dpkg -i packagefile.deb dpkg -i cyrus* dpkg -iR thisfolder/
download and install a package
apt-get install rdate
update the package database
apt-get update
upgrade all packages to their newest version
after running apt-get update you run
apt-get update
search for a certain package
apt-cache search NAME
NAME can be just part of the name, but you must not use wildcards here !!!
adding pgp/gpg-signature for a certain repository
example:
wget http://ftp.sara.nl/debian_sara.asc apt-key add debian_sara.asc apt-key list
knowwiki/basics/dpkg_basics.txt · Last modified: 2009/05/12 20:59 by peter



