How to list all configuration files for an already installed package?












10















I am running Ubuntu 12.10 and, if possible, I would like to get the list of configuration files available for a given package that is already installed.



I would prefer to do this using dpkg or apt if possible, but no problem if other tools such as aptitude or dselect are needed/recommended.










share|improve this question





























    10















    I am running Ubuntu 12.10 and, if possible, I would like to get the list of configuration files available for a given package that is already installed.



    I would prefer to do this using dpkg or apt if possible, but no problem if other tools such as aptitude or dselect are needed/recommended.










    share|improve this question



























      10












      10








      10


      3






      I am running Ubuntu 12.10 and, if possible, I would like to get the list of configuration files available for a given package that is already installed.



      I would prefer to do this using dpkg or apt if possible, but no problem if other tools such as aptitude or dselect are needed/recommended.










      share|improve this question
















      I am running Ubuntu 12.10 and, if possible, I would like to get the list of configuration files available for a given package that is already installed.



      I would prefer to do this using dpkg or apt if possible, but no problem if other tools such as aptitude or dselect are needed/recommended.







      package-management configuration






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 10 '17 at 16:41









      Vadim Kotov

      1298




      1298










      asked Apr 15 '13 at 22:37









      Daniel Yuste ArocaDaniel Yuste Aroca

      1,04811217




      1,04811217






















          3 Answers
          3






          active

          oldest

          votes


















          15














          There's no need to use anything other than cat, if I understood your intention correctly:



          cat /var/lib/dpkg/info/<package>.conffiles


          should give you what you're after. For instance for package zsh:



          % cat /var/lib/dpkg/info/zsh.conffiles
          /etc/zsh/zlogin
          /etc/zsh/zlogout
          /etc/zsh/zprofile
          /etc/zsh/zshenv
          /etc/zsh/zshrc
          /etc/zsh/newuser.zshrc.recommended


          Regarding a case where there's no such file for a given package - it's up to the package maintainer to designate certain files as configuration. If this hasn't been done properly, you should file a bug where appropriate.



          In such cases you have a couple of options.





          1. List files belonging to the package that are in /etc/:



            dpkg -L package | grep '/etc'



          2. Fetch and inspect the source package to find out how it was compiled (which should also show you where it expects its configuration files to be located).



            apt-get source package
            less package-x.y.z/debian/rules


          3. Look up the upstream project page to find documentation.







          share|improve this answer


























          • If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

            – Daniel Yuste Aroca
            Apr 16 '13 at 13:14











          • Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

            – Marcin Kaminski
            Apr 16 '13 at 14:00











          • The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

            – Darael
            Jul 10 '17 at 16:51



















          0














          Let's for example test the package apt to get the config file(s).



          It can be tricky to understand what .conffiles you should check to see the info so I suggest using grep to find the clue.



          locate *.conffiles | grep apt

          /var/lib/dpkg/info/apt-config-icons.conffiles
          /var/lib/dpkg/info/apt.conffiles
          /var/lib/dpkg/info/aptdaemon.conffiles
          /var/lib/dpkg/info/apturl-common.conffiles
          /var/lib/dpkg/info/libatk-adaptor:amd64.conffiles


          And to cat any of these in particular if you are interested according to Marcin's Kaminski answer.



          Another trick is to read the manual, for instance man apt will lead you to SEE ALSO section from where you can call man apt.conf where you will see the location of the config file for apt in this case: /etc/apt/apt.conf.



          However, config file /etc/apt/apt.conf may not even exist. Be aware of that when searching for the config files.



          In Linux config files should be inside the /etc/ directory. You may use dpkg-query -L your_package | grep etc to list all package files and directories inside the /etc/ directory.






          share|improve this answer

































            0














            How about dpkg -S [package-name]? Cant see it being mentioned here.



            root@homehub:/# dpkg -S nginx

            nginx-common: /usr/share/nginx/html
            nginx-full: /usr/share/man/man8/nginx.8.gz
            libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/copyright
            nginx-common: /etc/logrotate.d/nginx
            libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/changelog.gz
            libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair
            libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.Debian.gz
            libnginx-mod-http-image-filter: /usr/lib/nginx/modules/ngx_http_image_filter_module.so
            nginx-common: /etc/nginx/snippets
            libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/copyright
            nginx-common: /etc/nginx/snippets/fastcgi-php.conf
            libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/changelog.Debian.gz
            nginx-full: /usr/share/doc/nginx-full/copyright
            nginx-common: /usr/share/doc/nginx-common
            nginx-common: /etc/ufw/applications.d/nginx
            libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/changelog.gz
            libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
            nginx-common: /etc/nginx/sites-enabled
            libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/copyright
            libnginx-mod-http-subs-filter: /usr/share/doc/libnginx-mod-http-subs-filter/changelog.gz
            libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
            nginx-common: /etc/nginx/koi-utf
            nginx-common: /etc/nginx/mime.types
            nginx-common: /usr/share/vim/addons/syntax/nginx.vim
            nginx-common: /usr/share/doc/nginx-common/NEWS.Debian.gz
            nginx-common: /usr/share/doc/nginx-common/README.Debian
            nginx-full: /usr/share/doc/nginx-full
            libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
            libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.gz
            nginx: /usr/share/doc/nginx
            nginx-common: /etc/nginx/win-utf
            libnginx-mod-http-dav-ext: /usr/share/doc/libnginx-mod-http-dav-ext
            ....


            And sometimes depending on filename structure it might be good if piped out to grep names containing ".conf":



            root@homehub:/# dpkg -S nginx |grep ".conf"

            nginx-common: /etc/nginx/snippets/fastcgi-php.conf
            libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
            libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
            libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
            libnginx-mod-http-auth-pam: /usr/share/nginx/modules-available/mod-http-auth-pam.conf
            nginx-common: /etc/nginx/fastcgi.conf
            nginx-common: /etc/init/nginx.conf
            nginx-common: /etc/nginx/conf.d
            libnginx-mod-http-subs-filter: /usr/share/nginx/modules-available/mod-http-subs-filter.conf
            libnginx-mod-http-geoip: /usr/share/nginx/modules-available/mod-http-geoip.conf
            libnginx-mod-http-echo: /usr/share/nginx/modules-available/mod-http-echo.conf
            libnginx-mod-http-upstream-fair: /usr/share/nginx/modules-available/mod-http-upstream-fair.conf
            nginx-common: /etc/init/nginx.conf
            libnginx-mod-http-xslt-filter: /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
            nginx-common: /etc/nginx/snippets/snakeoil.conf
            nginx-common: /etc/nginx/nginx.conf
            libnginx-mod-http-image-filter: /usr/share/nginx/modules-available/mod-http-image-filter.conf





            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%2f281853%2fhow-to-list-all-configuration-files-for-an-already-installed-package%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              15














              There's no need to use anything other than cat, if I understood your intention correctly:



              cat /var/lib/dpkg/info/<package>.conffiles


              should give you what you're after. For instance for package zsh:



              % cat /var/lib/dpkg/info/zsh.conffiles
              /etc/zsh/zlogin
              /etc/zsh/zlogout
              /etc/zsh/zprofile
              /etc/zsh/zshenv
              /etc/zsh/zshrc
              /etc/zsh/newuser.zshrc.recommended


              Regarding a case where there's no such file for a given package - it's up to the package maintainer to designate certain files as configuration. If this hasn't been done properly, you should file a bug where appropriate.



              In such cases you have a couple of options.





              1. List files belonging to the package that are in /etc/:



                dpkg -L package | grep '/etc'



              2. Fetch and inspect the source package to find out how it was compiled (which should also show you where it expects its configuration files to be located).



                apt-get source package
                less package-x.y.z/debian/rules


              3. Look up the upstream project page to find documentation.







              share|improve this answer


























              • If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

                – Daniel Yuste Aroca
                Apr 16 '13 at 13:14











              • Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

                – Marcin Kaminski
                Apr 16 '13 at 14:00











              • The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

                – Darael
                Jul 10 '17 at 16:51
















              15














              There's no need to use anything other than cat, if I understood your intention correctly:



              cat /var/lib/dpkg/info/<package>.conffiles


              should give you what you're after. For instance for package zsh:



              % cat /var/lib/dpkg/info/zsh.conffiles
              /etc/zsh/zlogin
              /etc/zsh/zlogout
              /etc/zsh/zprofile
              /etc/zsh/zshenv
              /etc/zsh/zshrc
              /etc/zsh/newuser.zshrc.recommended


              Regarding a case where there's no such file for a given package - it's up to the package maintainer to designate certain files as configuration. If this hasn't been done properly, you should file a bug where appropriate.



              In such cases you have a couple of options.





              1. List files belonging to the package that are in /etc/:



                dpkg -L package | grep '/etc'



              2. Fetch and inspect the source package to find out how it was compiled (which should also show you where it expects its configuration files to be located).



                apt-get source package
                less package-x.y.z/debian/rules


              3. Look up the upstream project page to find documentation.







              share|improve this answer


























              • If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

                – Daniel Yuste Aroca
                Apr 16 '13 at 13:14











              • Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

                – Marcin Kaminski
                Apr 16 '13 at 14:00











              • The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

                – Darael
                Jul 10 '17 at 16:51














              15












              15








              15







              There's no need to use anything other than cat, if I understood your intention correctly:



              cat /var/lib/dpkg/info/<package>.conffiles


              should give you what you're after. For instance for package zsh:



              % cat /var/lib/dpkg/info/zsh.conffiles
              /etc/zsh/zlogin
              /etc/zsh/zlogout
              /etc/zsh/zprofile
              /etc/zsh/zshenv
              /etc/zsh/zshrc
              /etc/zsh/newuser.zshrc.recommended


              Regarding a case where there's no such file for a given package - it's up to the package maintainer to designate certain files as configuration. If this hasn't been done properly, you should file a bug where appropriate.



              In such cases you have a couple of options.





              1. List files belonging to the package that are in /etc/:



                dpkg -L package | grep '/etc'



              2. Fetch and inspect the source package to find out how it was compiled (which should also show you where it expects its configuration files to be located).



                apt-get source package
                less package-x.y.z/debian/rules


              3. Look up the upstream project page to find documentation.







              share|improve this answer















              There's no need to use anything other than cat, if I understood your intention correctly:



              cat /var/lib/dpkg/info/<package>.conffiles


              should give you what you're after. For instance for package zsh:



              % cat /var/lib/dpkg/info/zsh.conffiles
              /etc/zsh/zlogin
              /etc/zsh/zlogout
              /etc/zsh/zprofile
              /etc/zsh/zshenv
              /etc/zsh/zshrc
              /etc/zsh/newuser.zshrc.recommended


              Regarding a case where there's no such file for a given package - it's up to the package maintainer to designate certain files as configuration. If this hasn't been done properly, you should file a bug where appropriate.



              In such cases you have a couple of options.





              1. List files belonging to the package that are in /etc/:



                dpkg -L package | grep '/etc'



              2. Fetch and inspect the source package to find out how it was compiled (which should also show you where it expects its configuration files to be located).



                apt-get source package
                less package-x.y.z/debian/rules


              3. Look up the upstream project page to find documentation.








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 19 '17 at 1:11









              muru

              1




              1










              answered Apr 15 '13 at 23:30









              Marcin KaminskiMarcin Kaminski

              4,3861635




              4,3861635













              • If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

                – Daniel Yuste Aroca
                Apr 16 '13 at 13:14











              • Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

                – Marcin Kaminski
                Apr 16 '13 at 14:00











              • The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

                – Darael
                Jul 10 '17 at 16:51



















              • If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

                – Daniel Yuste Aroca
                Apr 16 '13 at 13:14











              • Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

                – Marcin Kaminski
                Apr 16 '13 at 14:00











              • The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

                – Darael
                Jul 10 '17 at 16:51

















              If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

              – Daniel Yuste Aroca
              Apr 16 '13 at 13:14





              If a given package is not having such a file .conffiles under this path, does it mean it is no using configuration files?

              – Daniel Yuste Aroca
              Apr 16 '13 at 13:14













              Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

              – Marcin Kaminski
              Apr 16 '13 at 14:00





              Not necessarily - it might be that there are indeed configuration files used by the package but the packager did not designate any files as part of the packaged application's configuration files.

              – Marcin Kaminski
              Apr 16 '13 at 14:00













              The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

              – Darael
              Jul 10 '17 at 16:51





              The .conffiles file will list all configuration files that ship with the package and are marked as such by the packager. An automatically-installed one that does not appear there is a packaging bug, but be aware that some files (particularly user-specific configuration in a user's dotfiles) cannot ship with the package and can't really be automatically located unless you already know what they are.

              – Darael
              Jul 10 '17 at 16:51













              0














              Let's for example test the package apt to get the config file(s).



              It can be tricky to understand what .conffiles you should check to see the info so I suggest using grep to find the clue.



              locate *.conffiles | grep apt

              /var/lib/dpkg/info/apt-config-icons.conffiles
              /var/lib/dpkg/info/apt.conffiles
              /var/lib/dpkg/info/aptdaemon.conffiles
              /var/lib/dpkg/info/apturl-common.conffiles
              /var/lib/dpkg/info/libatk-adaptor:amd64.conffiles


              And to cat any of these in particular if you are interested according to Marcin's Kaminski answer.



              Another trick is to read the manual, for instance man apt will lead you to SEE ALSO section from where you can call man apt.conf where you will see the location of the config file for apt in this case: /etc/apt/apt.conf.



              However, config file /etc/apt/apt.conf may not even exist. Be aware of that when searching for the config files.



              In Linux config files should be inside the /etc/ directory. You may use dpkg-query -L your_package | grep etc to list all package files and directories inside the /etc/ directory.






              share|improve this answer






























                0














                Let's for example test the package apt to get the config file(s).



                It can be tricky to understand what .conffiles you should check to see the info so I suggest using grep to find the clue.



                locate *.conffiles | grep apt

                /var/lib/dpkg/info/apt-config-icons.conffiles
                /var/lib/dpkg/info/apt.conffiles
                /var/lib/dpkg/info/aptdaemon.conffiles
                /var/lib/dpkg/info/apturl-common.conffiles
                /var/lib/dpkg/info/libatk-adaptor:amd64.conffiles


                And to cat any of these in particular if you are interested according to Marcin's Kaminski answer.



                Another trick is to read the manual, for instance man apt will lead you to SEE ALSO section from where you can call man apt.conf where you will see the location of the config file for apt in this case: /etc/apt/apt.conf.



                However, config file /etc/apt/apt.conf may not even exist. Be aware of that when searching for the config files.



                In Linux config files should be inside the /etc/ directory. You may use dpkg-query -L your_package | grep etc to list all package files and directories inside the /etc/ directory.






                share|improve this answer




























                  0












                  0








                  0







                  Let's for example test the package apt to get the config file(s).



                  It can be tricky to understand what .conffiles you should check to see the info so I suggest using grep to find the clue.



                  locate *.conffiles | grep apt

                  /var/lib/dpkg/info/apt-config-icons.conffiles
                  /var/lib/dpkg/info/apt.conffiles
                  /var/lib/dpkg/info/aptdaemon.conffiles
                  /var/lib/dpkg/info/apturl-common.conffiles
                  /var/lib/dpkg/info/libatk-adaptor:amd64.conffiles


                  And to cat any of these in particular if you are interested according to Marcin's Kaminski answer.



                  Another trick is to read the manual, for instance man apt will lead you to SEE ALSO section from where you can call man apt.conf where you will see the location of the config file for apt in this case: /etc/apt/apt.conf.



                  However, config file /etc/apt/apt.conf may not even exist. Be aware of that when searching for the config files.



                  In Linux config files should be inside the /etc/ directory. You may use dpkg-query -L your_package | grep etc to list all package files and directories inside the /etc/ directory.






                  share|improve this answer















                  Let's for example test the package apt to get the config file(s).



                  It can be tricky to understand what .conffiles you should check to see the info so I suggest using grep to find the clue.



                  locate *.conffiles | grep apt

                  /var/lib/dpkg/info/apt-config-icons.conffiles
                  /var/lib/dpkg/info/apt.conffiles
                  /var/lib/dpkg/info/aptdaemon.conffiles
                  /var/lib/dpkg/info/apturl-common.conffiles
                  /var/lib/dpkg/info/libatk-adaptor:amd64.conffiles


                  And to cat any of these in particular if you are interested according to Marcin's Kaminski answer.



                  Another trick is to read the manual, for instance man apt will lead you to SEE ALSO section from where you can call man apt.conf where you will see the location of the config file for apt in this case: /etc/apt/apt.conf.



                  However, config file /etc/apt/apt.conf may not even exist. Be aware of that when searching for the config files.



                  In Linux config files should be inside the /etc/ directory. You may use dpkg-query -L your_package | grep etc to list all package files and directories inside the /etc/ directory.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 22 '18 at 14:55

























                  answered Aug 22 '18 at 14:47









                  prostiprosti

                  30119




                  30119























                      0














                      How about dpkg -S [package-name]? Cant see it being mentioned here.



                      root@homehub:/# dpkg -S nginx

                      nginx-common: /usr/share/nginx/html
                      nginx-full: /usr/share/man/man8/nginx.8.gz
                      libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/copyright
                      nginx-common: /etc/logrotate.d/nginx
                      libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/changelog.gz
                      libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair
                      libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.Debian.gz
                      libnginx-mod-http-image-filter: /usr/lib/nginx/modules/ngx_http_image_filter_module.so
                      nginx-common: /etc/nginx/snippets
                      libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/copyright
                      nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                      libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/changelog.Debian.gz
                      nginx-full: /usr/share/doc/nginx-full/copyright
                      nginx-common: /usr/share/doc/nginx-common
                      nginx-common: /etc/ufw/applications.d/nginx
                      libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/changelog.gz
                      libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                      nginx-common: /etc/nginx/sites-enabled
                      libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/copyright
                      libnginx-mod-http-subs-filter: /usr/share/doc/libnginx-mod-http-subs-filter/changelog.gz
                      libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                      nginx-common: /etc/nginx/koi-utf
                      nginx-common: /etc/nginx/mime.types
                      nginx-common: /usr/share/vim/addons/syntax/nginx.vim
                      nginx-common: /usr/share/doc/nginx-common/NEWS.Debian.gz
                      nginx-common: /usr/share/doc/nginx-common/README.Debian
                      nginx-full: /usr/share/doc/nginx-full
                      libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                      libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.gz
                      nginx: /usr/share/doc/nginx
                      nginx-common: /etc/nginx/win-utf
                      libnginx-mod-http-dav-ext: /usr/share/doc/libnginx-mod-http-dav-ext
                      ....


                      And sometimes depending on filename structure it might be good if piped out to grep names containing ".conf":



                      root@homehub:/# dpkg -S nginx |grep ".conf"

                      nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                      libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                      libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                      libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                      libnginx-mod-http-auth-pam: /usr/share/nginx/modules-available/mod-http-auth-pam.conf
                      nginx-common: /etc/nginx/fastcgi.conf
                      nginx-common: /etc/init/nginx.conf
                      nginx-common: /etc/nginx/conf.d
                      libnginx-mod-http-subs-filter: /usr/share/nginx/modules-available/mod-http-subs-filter.conf
                      libnginx-mod-http-geoip: /usr/share/nginx/modules-available/mod-http-geoip.conf
                      libnginx-mod-http-echo: /usr/share/nginx/modules-available/mod-http-echo.conf
                      libnginx-mod-http-upstream-fair: /usr/share/nginx/modules-available/mod-http-upstream-fair.conf
                      nginx-common: /etc/init/nginx.conf
                      libnginx-mod-http-xslt-filter: /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
                      nginx-common: /etc/nginx/snippets/snakeoil.conf
                      nginx-common: /etc/nginx/nginx.conf
                      libnginx-mod-http-image-filter: /usr/share/nginx/modules-available/mod-http-image-filter.conf





                      share|improve this answer




























                        0














                        How about dpkg -S [package-name]? Cant see it being mentioned here.



                        root@homehub:/# dpkg -S nginx

                        nginx-common: /usr/share/nginx/html
                        nginx-full: /usr/share/man/man8/nginx.8.gz
                        libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/copyright
                        nginx-common: /etc/logrotate.d/nginx
                        libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/changelog.gz
                        libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair
                        libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.Debian.gz
                        libnginx-mod-http-image-filter: /usr/lib/nginx/modules/ngx_http_image_filter_module.so
                        nginx-common: /etc/nginx/snippets
                        libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/copyright
                        nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                        libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/changelog.Debian.gz
                        nginx-full: /usr/share/doc/nginx-full/copyright
                        nginx-common: /usr/share/doc/nginx-common
                        nginx-common: /etc/ufw/applications.d/nginx
                        libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/changelog.gz
                        libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                        nginx-common: /etc/nginx/sites-enabled
                        libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/copyright
                        libnginx-mod-http-subs-filter: /usr/share/doc/libnginx-mod-http-subs-filter/changelog.gz
                        libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                        nginx-common: /etc/nginx/koi-utf
                        nginx-common: /etc/nginx/mime.types
                        nginx-common: /usr/share/vim/addons/syntax/nginx.vim
                        nginx-common: /usr/share/doc/nginx-common/NEWS.Debian.gz
                        nginx-common: /usr/share/doc/nginx-common/README.Debian
                        nginx-full: /usr/share/doc/nginx-full
                        libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                        libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.gz
                        nginx: /usr/share/doc/nginx
                        nginx-common: /etc/nginx/win-utf
                        libnginx-mod-http-dav-ext: /usr/share/doc/libnginx-mod-http-dav-ext
                        ....


                        And sometimes depending on filename structure it might be good if piped out to grep names containing ".conf":



                        root@homehub:/# dpkg -S nginx |grep ".conf"

                        nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                        libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                        libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                        libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                        libnginx-mod-http-auth-pam: /usr/share/nginx/modules-available/mod-http-auth-pam.conf
                        nginx-common: /etc/nginx/fastcgi.conf
                        nginx-common: /etc/init/nginx.conf
                        nginx-common: /etc/nginx/conf.d
                        libnginx-mod-http-subs-filter: /usr/share/nginx/modules-available/mod-http-subs-filter.conf
                        libnginx-mod-http-geoip: /usr/share/nginx/modules-available/mod-http-geoip.conf
                        libnginx-mod-http-echo: /usr/share/nginx/modules-available/mod-http-echo.conf
                        libnginx-mod-http-upstream-fair: /usr/share/nginx/modules-available/mod-http-upstream-fair.conf
                        nginx-common: /etc/init/nginx.conf
                        libnginx-mod-http-xslt-filter: /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
                        nginx-common: /etc/nginx/snippets/snakeoil.conf
                        nginx-common: /etc/nginx/nginx.conf
                        libnginx-mod-http-image-filter: /usr/share/nginx/modules-available/mod-http-image-filter.conf





                        share|improve this answer


























                          0












                          0








                          0







                          How about dpkg -S [package-name]? Cant see it being mentioned here.



                          root@homehub:/# dpkg -S nginx

                          nginx-common: /usr/share/nginx/html
                          nginx-full: /usr/share/man/man8/nginx.8.gz
                          libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/copyright
                          nginx-common: /etc/logrotate.d/nginx
                          libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/changelog.gz
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair
                          libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.Debian.gz
                          libnginx-mod-http-image-filter: /usr/lib/nginx/modules/ngx_http_image_filter_module.so
                          nginx-common: /etc/nginx/snippets
                          libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/copyright
                          nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                          libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/changelog.Debian.gz
                          nginx-full: /usr/share/doc/nginx-full/copyright
                          nginx-common: /usr/share/doc/nginx-common
                          nginx-common: /etc/ufw/applications.d/nginx
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/changelog.gz
                          libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                          nginx-common: /etc/nginx/sites-enabled
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/copyright
                          libnginx-mod-http-subs-filter: /usr/share/doc/libnginx-mod-http-subs-filter/changelog.gz
                          libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                          nginx-common: /etc/nginx/koi-utf
                          nginx-common: /etc/nginx/mime.types
                          nginx-common: /usr/share/vim/addons/syntax/nginx.vim
                          nginx-common: /usr/share/doc/nginx-common/NEWS.Debian.gz
                          nginx-common: /usr/share/doc/nginx-common/README.Debian
                          nginx-full: /usr/share/doc/nginx-full
                          libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                          libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.gz
                          nginx: /usr/share/doc/nginx
                          nginx-common: /etc/nginx/win-utf
                          libnginx-mod-http-dav-ext: /usr/share/doc/libnginx-mod-http-dav-ext
                          ....


                          And sometimes depending on filename structure it might be good if piped out to grep names containing ".conf":



                          root@homehub:/# dpkg -S nginx |grep ".conf"

                          nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                          libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                          libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                          libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                          libnginx-mod-http-auth-pam: /usr/share/nginx/modules-available/mod-http-auth-pam.conf
                          nginx-common: /etc/nginx/fastcgi.conf
                          nginx-common: /etc/init/nginx.conf
                          nginx-common: /etc/nginx/conf.d
                          libnginx-mod-http-subs-filter: /usr/share/nginx/modules-available/mod-http-subs-filter.conf
                          libnginx-mod-http-geoip: /usr/share/nginx/modules-available/mod-http-geoip.conf
                          libnginx-mod-http-echo: /usr/share/nginx/modules-available/mod-http-echo.conf
                          libnginx-mod-http-upstream-fair: /usr/share/nginx/modules-available/mod-http-upstream-fair.conf
                          nginx-common: /etc/init/nginx.conf
                          libnginx-mod-http-xslt-filter: /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
                          nginx-common: /etc/nginx/snippets/snakeoil.conf
                          nginx-common: /etc/nginx/nginx.conf
                          libnginx-mod-http-image-filter: /usr/share/nginx/modules-available/mod-http-image-filter.conf





                          share|improve this answer













                          How about dpkg -S [package-name]? Cant see it being mentioned here.



                          root@homehub:/# dpkg -S nginx

                          nginx-common: /usr/share/nginx/html
                          nginx-full: /usr/share/man/man8/nginx.8.gz
                          libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/copyright
                          nginx-common: /etc/logrotate.d/nginx
                          libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/changelog.gz
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair
                          libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.Debian.gz
                          libnginx-mod-http-image-filter: /usr/lib/nginx/modules/ngx_http_image_filter_module.so
                          nginx-common: /etc/nginx/snippets
                          libnginx-mod-mail: /usr/share/doc/libnginx-mod-mail/copyright
                          nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                          libnginx-mod-http-xslt-filter: /usr/share/doc/libnginx-mod-http-xslt-filter/changelog.Debian.gz
                          nginx-full: /usr/share/doc/nginx-full/copyright
                          nginx-common: /usr/share/doc/nginx-common
                          nginx-common: /etc/ufw/applications.d/nginx
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/changelog.gz
                          libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                          nginx-common: /etc/nginx/sites-enabled
                          libnginx-mod-http-upstream-fair: /usr/share/doc/libnginx-mod-http-upstream-fair/copyright
                          libnginx-mod-http-subs-filter: /usr/share/doc/libnginx-mod-http-subs-filter/changelog.gz
                          libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                          nginx-common: /etc/nginx/koi-utf
                          nginx-common: /etc/nginx/mime.types
                          nginx-common: /usr/share/vim/addons/syntax/nginx.vim
                          nginx-common: /usr/share/doc/nginx-common/NEWS.Debian.gz
                          nginx-common: /usr/share/doc/nginx-common/README.Debian
                          nginx-full: /usr/share/doc/nginx-full
                          libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                          libnginx-mod-http-auth-pam: /usr/share/doc/libnginx-mod-http-auth-pam/changelog.gz
                          nginx: /usr/share/doc/nginx
                          nginx-common: /etc/nginx/win-utf
                          libnginx-mod-http-dav-ext: /usr/share/doc/libnginx-mod-http-dav-ext
                          ....


                          And sometimes depending on filename structure it might be good if piped out to grep names containing ".conf":



                          root@homehub:/# dpkg -S nginx |grep ".conf"

                          nginx-common: /etc/nginx/snippets/fastcgi-php.conf
                          libnginx-mod-stream: /usr/share/nginx/modules-available/mod-stream.conf
                          libnginx-mod-http-dav-ext: /usr/share/nginx/modules-available/mod-http-dav-ext.conf
                          libnginx-mod-mail: /usr/share/nginx/modules-available/mod-mail.conf
                          libnginx-mod-http-auth-pam: /usr/share/nginx/modules-available/mod-http-auth-pam.conf
                          nginx-common: /etc/nginx/fastcgi.conf
                          nginx-common: /etc/init/nginx.conf
                          nginx-common: /etc/nginx/conf.d
                          libnginx-mod-http-subs-filter: /usr/share/nginx/modules-available/mod-http-subs-filter.conf
                          libnginx-mod-http-geoip: /usr/share/nginx/modules-available/mod-http-geoip.conf
                          libnginx-mod-http-echo: /usr/share/nginx/modules-available/mod-http-echo.conf
                          libnginx-mod-http-upstream-fair: /usr/share/nginx/modules-available/mod-http-upstream-fair.conf
                          nginx-common: /etc/init/nginx.conf
                          libnginx-mod-http-xslt-filter: /usr/share/nginx/modules-available/mod-http-xslt-filter.conf
                          nginx-common: /etc/nginx/snippets/snakeoil.conf
                          nginx-common: /etc/nginx/nginx.conf
                          libnginx-mod-http-image-filter: /usr/share/nginx/modules-available/mod-http-image-filter.conf






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 2 at 11:06









                          hrdyhrdy

                          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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f281853%2fhow-to-list-all-configuration-files-for-an-already-installed-package%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á

                              Eduardo VII do Reino Unido