The Debian Package manager (apt-cache, apt-get, install, search)

Last modified on July 24, 2026 • 1 min read • 48 words
Search for packages containing the word emacs in their name or description:apt-cache search emacsInstall package emacs21:apt-get install emacs21Remove package wine including all configuration files:apt-get remove –purge wineReinstall a package:apt-get –reinstall install wineSometimes, you need to use dpkg to reconfigure a package, e.g.
Search for packages containing the word emacs in their name or description:apt-cache search emacsInstall package emacs21:apt-get install emacs21Remove package wine including all configuration files:apt-get remove --purge wineReinstall a package:apt-get --reinstall install wineSometimes, you need to use dpkg to reconfigure a package, e.g. here the bittorrent sync package:dpkg-reconfigure btsync