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
examples
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
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