How to display all apt-get Dpkg::Options and their current values?











up vote
6
down vote

favorite
2












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?










share|improve this question




























    up vote
    6
    down vote

    favorite
    2












    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?










    share|improve this question


























      up vote
      6
      down vote

      favorite
      2









      up vote
      6
      down vote

      favorite
      2






      2





      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?










      share|improve this question















      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?







      apt dpkg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 21 at 3:27









      MestreLion

      13.5k116796




      13.5k116796










      asked Feb 12 '13 at 9:45









      James Mitch

      1




      1






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          11
          down vote













          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 dpkg force options you were interested in, but not a comprehensive list of options:



          $ dpkg --force-help
          dpkg forcing options - control behaviour when problems found:
          warn but continue: --force-<thing>,<thing>,...
          stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
          Forcing things:
          [!] all Set all force options
          [*] downgrade Replace a package with a lower version
          configure-any Configure any package which may help this one
          hold Process incidental packages even when on hold
          not-root Try to (de)install things even when not root
          bad-path PATH is missing important programs, problems likely
          bad-verify Install a package even if it fails authenticity check
          bad-version Process even packages with wrong versions
          overwrite Overwrite a file from one package with another
          overwrite-diverted Overwrite a diverted file with an undiverted version
          [!] overwrite-dir Overwrite one package's directory with another's file
          [!] unsafe-io Do not perform safe I/O operations when unpacking
          [!] confnew Always use the new config files, don't prompt
          [!] confold Always use the old config files, don't prompt
          [!] confdef Use the default option for new config files if one
          is available, don't prompt. If no default can be found,
          you will be prompted unless one of the confold or
          confnew options is also given
          [!] confmiss Always install missing config files
          [!] confask Offer to replace config files with no new versions
          [!] architecture Process even packages with wrong or no architecture
          [!] breaks Install even if it would break another package
          [!] conflicts Allow installation of conflicting packages
          [!] depends Turn all dependency problems into warnings
          [!] depends-version Turn dependency version problems into warnings
          [!] remove-reinstreq Remove packages which require installation
          [!] remove-essential Remove an essential package

          WARNING - use of options marked [!] can seriously damage your installation.
          Forcing options marked [*] are enabled by default.





          share|improve this answer























          • This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
            – thom_nic
            Oct 18 '17 at 18:50










          • I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
            – thom_nic
            Oct 18 '17 at 19:01


















          up vote
          5
          down vote



          accepted










          Can be done using.



          apt-config dump





          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f254129%2fhow-to-display-all-apt-get-dpkgoptions-and-their-current-values%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            11
            down vote













            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 dpkg force options you were interested in, but not a comprehensive list of options:



            $ dpkg --force-help
            dpkg forcing options - control behaviour when problems found:
            warn but continue: --force-<thing>,<thing>,...
            stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
            Forcing things:
            [!] all Set all force options
            [*] downgrade Replace a package with a lower version
            configure-any Configure any package which may help this one
            hold Process incidental packages even when on hold
            not-root Try to (de)install things even when not root
            bad-path PATH is missing important programs, problems likely
            bad-verify Install a package even if it fails authenticity check
            bad-version Process even packages with wrong versions
            overwrite Overwrite a file from one package with another
            overwrite-diverted Overwrite a diverted file with an undiverted version
            [!] overwrite-dir Overwrite one package's directory with another's file
            [!] unsafe-io Do not perform safe I/O operations when unpacking
            [!] confnew Always use the new config files, don't prompt
            [!] confold Always use the old config files, don't prompt
            [!] confdef Use the default option for new config files if one
            is available, don't prompt. If no default can be found,
            you will be prompted unless one of the confold or
            confnew options is also given
            [!] confmiss Always install missing config files
            [!] confask Offer to replace config files with no new versions
            [!] architecture Process even packages with wrong or no architecture
            [!] breaks Install even if it would break another package
            [!] conflicts Allow installation of conflicting packages
            [!] depends Turn all dependency problems into warnings
            [!] depends-version Turn dependency version problems into warnings
            [!] remove-reinstreq Remove packages which require installation
            [!] remove-essential Remove an essential package

            WARNING - use of options marked [!] can seriously damage your installation.
            Forcing options marked [*] are enabled by default.





            share|improve this answer























            • This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
              – thom_nic
              Oct 18 '17 at 18:50










            • I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
              – thom_nic
              Oct 18 '17 at 19:01















            up vote
            11
            down vote













            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 dpkg force options you were interested in, but not a comprehensive list of options:



            $ dpkg --force-help
            dpkg forcing options - control behaviour when problems found:
            warn but continue: --force-<thing>,<thing>,...
            stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
            Forcing things:
            [!] all Set all force options
            [*] downgrade Replace a package with a lower version
            configure-any Configure any package which may help this one
            hold Process incidental packages even when on hold
            not-root Try to (de)install things even when not root
            bad-path PATH is missing important programs, problems likely
            bad-verify Install a package even if it fails authenticity check
            bad-version Process even packages with wrong versions
            overwrite Overwrite a file from one package with another
            overwrite-diverted Overwrite a diverted file with an undiverted version
            [!] overwrite-dir Overwrite one package's directory with another's file
            [!] unsafe-io Do not perform safe I/O operations when unpacking
            [!] confnew Always use the new config files, don't prompt
            [!] confold Always use the old config files, don't prompt
            [!] confdef Use the default option for new config files if one
            is available, don't prompt. If no default can be found,
            you will be prompted unless one of the confold or
            confnew options is also given
            [!] confmiss Always install missing config files
            [!] confask Offer to replace config files with no new versions
            [!] architecture Process even packages with wrong or no architecture
            [!] breaks Install even if it would break another package
            [!] conflicts Allow installation of conflicting packages
            [!] depends Turn all dependency problems into warnings
            [!] depends-version Turn dependency version problems into warnings
            [!] remove-reinstreq Remove packages which require installation
            [!] remove-essential Remove an essential package

            WARNING - use of options marked [!] can seriously damage your installation.
            Forcing options marked [*] are enabled by default.





            share|improve this answer























            • This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
              – thom_nic
              Oct 18 '17 at 18:50










            • I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
              – thom_nic
              Oct 18 '17 at 19:01













            up vote
            11
            down vote










            up vote
            11
            down vote









            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 dpkg force options you were interested in, but not a comprehensive list of options:



            $ dpkg --force-help
            dpkg forcing options - control behaviour when problems found:
            warn but continue: --force-<thing>,<thing>,...
            stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
            Forcing things:
            [!] all Set all force options
            [*] downgrade Replace a package with a lower version
            configure-any Configure any package which may help this one
            hold Process incidental packages even when on hold
            not-root Try to (de)install things even when not root
            bad-path PATH is missing important programs, problems likely
            bad-verify Install a package even if it fails authenticity check
            bad-version Process even packages with wrong versions
            overwrite Overwrite a file from one package with another
            overwrite-diverted Overwrite a diverted file with an undiverted version
            [!] overwrite-dir Overwrite one package's directory with another's file
            [!] unsafe-io Do not perform safe I/O operations when unpacking
            [!] confnew Always use the new config files, don't prompt
            [!] confold Always use the old config files, don't prompt
            [!] confdef Use the default option for new config files if one
            is available, don't prompt. If no default can be found,
            you will be prompted unless one of the confold or
            confnew options is also given
            [!] confmiss Always install missing config files
            [!] confask Offer to replace config files with no new versions
            [!] architecture Process even packages with wrong or no architecture
            [!] breaks Install even if it would break another package
            [!] conflicts Allow installation of conflicting packages
            [!] depends Turn all dependency problems into warnings
            [!] depends-version Turn dependency version problems into warnings
            [!] remove-reinstreq Remove packages which require installation
            [!] remove-essential Remove an essential package

            WARNING - use of options marked [!] can seriously damage your installation.
            Forcing options marked [*] are enabled by default.





            share|improve this answer














            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 dpkg force options you were interested in, but not a comprehensive list of options:



            $ dpkg --force-help
            dpkg forcing options - control behaviour when problems found:
            warn but continue: --force-<thing>,<thing>,...
            stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
            Forcing things:
            [!] all Set all force options
            [*] downgrade Replace a package with a lower version
            configure-any Configure any package which may help this one
            hold Process incidental packages even when on hold
            not-root Try to (de)install things even when not root
            bad-path PATH is missing important programs, problems likely
            bad-verify Install a package even if it fails authenticity check
            bad-version Process even packages with wrong versions
            overwrite Overwrite a file from one package with another
            overwrite-diverted Overwrite a diverted file with an undiverted version
            [!] overwrite-dir Overwrite one package's directory with another's file
            [!] unsafe-io Do not perform safe I/O operations when unpacking
            [!] confnew Always use the new config files, don't prompt
            [!] confold Always use the old config files, don't prompt
            [!] confdef Use the default option for new config files if one
            is available, don't prompt. If no default can be found,
            you will be prompted unless one of the confold or
            confnew options is also given
            [!] confmiss Always install missing config files
            [!] confask Offer to replace config files with no new versions
            [!] architecture Process even packages with wrong or no architecture
            [!] breaks Install even if it would break another package
            [!] conflicts Allow installation of conflicting packages
            [!] depends Turn all dependency problems into warnings
            [!] depends-version Turn dependency version problems into warnings
            [!] remove-reinstreq Remove packages which require installation
            [!] remove-essential Remove an essential package

            WARNING - use of options marked [!] can seriously damage your installation.
            Forcing options marked [*] are enabled by default.






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 6 at 15:17









            d4nyll

            1,257912




            1,257912










            answered Dec 12 '13 at 20:19









            righdforsa

            11115




            11115












            • This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
              – thom_nic
              Oct 18 '17 at 18:50










            • I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
              – thom_nic
              Oct 18 '17 at 19:01


















            • This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
              – thom_nic
              Oct 18 '17 at 18:50










            • I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
              – thom_nic
              Oct 18 '17 at 19:01
















            This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
            – thom_nic
            Oct 18 '17 at 18:50




            This is helpful, as is linux.die.net/man/1/dpkg (see the --force-*things* section) however neither shows the current set values as requested by OP.
            – thom_nic
            Oct 18 '17 at 18:50












            I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
            – thom_nic
            Oct 18 '17 at 19:01




            I should have also mentioned that apt-config dump will list Dpkg::Options, but only if some are set e.g. in /etc/apt/apt.conf.d/. S.a. askubuntu.com/a/104912/399010
            – thom_nic
            Oct 18 '17 at 19:01












            up vote
            5
            down vote



            accepted










            Can be done using.



            apt-config dump





            share|improve this answer

























              up vote
              5
              down vote



              accepted










              Can be done using.



              apt-config dump





              share|improve this answer























                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                Can be done using.



                apt-config dump





                share|improve this answer












                Can be done using.



                apt-config dump






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 13 '13 at 12:21









                James Mitch

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f254129%2fhow-to-display-all-apt-get-dpkgoptions-and-their-current-values%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕