Updating packages with dpkg-reconfigure

Debian's Secret Recovery Tool

Article from Issue 155/2013
Author(s):

The powerful dpkg-reconfigure command can be used to reconfigure an entire installation. We show how to use it wisely.

Long before the Linux desktop had a complete set of system tools, Debian and its derivatives had debconf [1], an all-purpose toolkit that the root user used to reconfigure an entire installation through the dpkg-reconfigure command. Today, many users have never heard of it, but dpkg-reconfigure remains a powerful tool in the hands of experts.

What makes dpkg-reconfigure so powerful is that it's not just a collection of settings to select. Instead, dpkg-reconfigure changes the settings of individual packages that are registered with debconf. These settings are determined by questions in a package's installation script [2]. Each question is given a priority, and when you choose an installer and its settings, you are choosing the priority of the questions you want to answer – anything from only the highest priority, in the case of the default Ubuntu installer, to the absolute lowest priority in an expert installation. The questions that you choose not to answer are given a default answer based on the information collected about your system and what should work on most systems.

After installation, dpkg-reconfigure gives you the chance to answer some or all of the questions again in the installation script. You can configure the package as precisely as you like, which makes dpkg-reconfigure ideal for troubleshooting or updating after installing hardware.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Time Saver

    A classic Debian tool, dpkg-reconfigure provides a convenient and efficient way to reconfigure previously installed packages.

  • Command Line – Systemd

    Systemd is a complex management structure with many commands and capabilities. We provide an overview of a few basic commands and their use.

  • Command Line: Debian Goodies

    The Debian Goodies collection offers a variety of time-tested scripts to help you manage Debian packages.

  • Command Line: wajig

    The wajig tool simplifies package management using self-explanatory sub-commands.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News