Linux Commands Examples

A great documentation place for Linux commands

debconf-show

query the debconf database

Synopsis

 debconf-show packagename [...] [--db=dbname]
 debconf-show --listowners [--db=dbname]
 debconf-show --listdbs

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
have debconf-show &&
_debconf_show()
{
local cur
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=($( compgen -W '--listowners --listdbs --db=' -- $cur ) \
$( apt-cache pkgnames -- $cur ) )
}
complete -F _debconf_show debconf-show
0
source
            
options=$(debconf-show --listowners | sort)
__menu -t 'Debconf owners' $(printf ' -o %s' $options) --back --exit
[ ! $# -eq 1 ] && echo "${BASH_SOURCE##*/} ${FUNCNAME} line $LINENO : Function wait for an argument." >&2 && exit
[ -z "$(which debconf-show)" ] && __package_cp install debconf-utils

description

debconf-show lets you query the debconf database in different ways.

The most common use is "debconf-show packagename", which displays all items in the debconf database owned by a given package, and their current values. Questions that have been asked already are prefixed with an ’*’.

This can be useful as a debugging aid, and especially handy in bug reports involving a package’s use of debconf.

options

--db=dbname

Specify the database to query. By default, debconf-show queries the main database.

--listowners

Lists all owners of questions in the database. Generally an owner is equivalent to a debian package name.

--listdbs

Lists all available databases.


author

Joey Hess <joeyh[:at:]debian[:dot:]org> and Sylvain Ferriol

How can this site be more helpful to YOU ?


give  feedback