There is
apt-get -o Dpkg::Options::="--force-confnew"
and
apt-get -o Dpkg::Options::="--force-confold"
and many more.
How can I get a list of all Dpkg::Options
and their currently set values?
There is
apt-get -o Dpkg::Options::="--force-confnew"
and
apt-get -o Dpkg::Options::="--force-confold"
and many more.
How can I get a list of all Dpkg::Options
and their currently set values?
Unfortunately,
apt-config dump
doesn't list the dpkg options you were looking for.man dpkg
helped me find this command,--force-help
, which is more specific to the particular dpkgforce
options you were interested in, but not a comprehensive list of options:Can be done using.
Short Answer:
dpkg --force-help
I disagree with the accepted answer. Although apt-config dump is helpful for viewing some of the currently-enabled options - many of which are commonly useful for simple apt operations - it does not show all of the options for dpkg actions, namely, the "force" options to which the original question refers. For viewing which of these additional options are enabled by default, as well as which options should only be changed when completely necessary by a well-informed user, one must use the help provided (from CLI) by
dpkg --force-help
. The man page for dpkg provides a short explanation of this flag's output under its section describing the--force-*things*
flag for thedpkg
command. This man page can also be viewed online: http://man7.org/linux/man-pages/man1/dpkg.1.html https://linux.die.net/man/1/dpkg (These are just a couple locations).