what is the file /var/lib/dpkg/status about and why do I need it












2















I am new in Ubuntu. I have a trusty version. I do not get the meaning of the file status. I'va figured it out running the command:



apt-cache policy postgresql-9.6


and I got this output:



postgresql-9.6:
Installed: (none)
Candidate: (none)
Version table:
9.6.2-1.pgdg14.04+1 0
100 /var/lib/dpkg/status


What does it mean "Break" and "Replace" on file /var/lib/dpkg/status?










share|improve this question




















  • 4





    Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

    – Panther
    Mar 29 '17 at 16:00











  • /var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

    – Panther
    Mar 29 '17 at 16:15











  • @bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

    – Glori P.
    Mar 30 '17 at 8:36













  • Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

    – Panther
    Mar 31 '17 at 15:47













  • @GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

    – Anwar
    Apr 16 '17 at 15:47
















2















I am new in Ubuntu. I have a trusty version. I do not get the meaning of the file status. I'va figured it out running the command:



apt-cache policy postgresql-9.6


and I got this output:



postgresql-9.6:
Installed: (none)
Candidate: (none)
Version table:
9.6.2-1.pgdg14.04+1 0
100 /var/lib/dpkg/status


What does it mean "Break" and "Replace" on file /var/lib/dpkg/status?










share|improve this question




















  • 4





    Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

    – Panther
    Mar 29 '17 at 16:00











  • /var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

    – Panther
    Mar 29 '17 at 16:15











  • @bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

    – Glori P.
    Mar 30 '17 at 8:36













  • Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

    – Panther
    Mar 31 '17 at 15:47













  • @GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

    – Anwar
    Apr 16 '17 at 15:47














2












2








2


1






I am new in Ubuntu. I have a trusty version. I do not get the meaning of the file status. I'va figured it out running the command:



apt-cache policy postgresql-9.6


and I got this output:



postgresql-9.6:
Installed: (none)
Candidate: (none)
Version table:
9.6.2-1.pgdg14.04+1 0
100 /var/lib/dpkg/status


What does it mean "Break" and "Replace" on file /var/lib/dpkg/status?










share|improve this question
















I am new in Ubuntu. I have a trusty version. I do not get the meaning of the file status. I'va figured it out running the command:



apt-cache policy postgresql-9.6


and I got this output:



postgresql-9.6:
Installed: (none)
Candidate: (none)
Version table:
9.6.2-1.pgdg14.04+1 0
100 /var/lib/dpkg/status


What does it mean "Break" and "Replace" on file /var/lib/dpkg/status?







apt dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 24 '17 at 9:36







Glori P.

















asked Mar 29 '17 at 15:35









Glori P.Glori P.

1314




1314








  • 4





    Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

    – Panther
    Mar 29 '17 at 16:00











  • /var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

    – Panther
    Mar 29 '17 at 16:15











  • @bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

    – Glori P.
    Mar 30 '17 at 8:36













  • Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

    – Panther
    Mar 31 '17 at 15:47













  • @GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

    – Anwar
    Apr 16 '17 at 15:47














  • 4





    Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

    – Panther
    Mar 29 '17 at 16:00











  • /var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

    – Panther
    Mar 29 '17 at 16:15











  • @bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

    – Glori P.
    Mar 30 '17 at 8:36













  • Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

    – Panther
    Mar 31 '17 at 15:47













  • @GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

    – Anwar
    Apr 16 '17 at 15:47








4




4





Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

– Panther
Mar 29 '17 at 16:00





Possible duplicate of What do the numbers in the output of apt-cache policy tell us?

– Panther
Mar 29 '17 at 16:00













/var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

– Panther
Mar 29 '17 at 16:15





/var/lib/dpkg/status is the local database used by apt-cache so that you can obtain such information faster and without internet access.

– Panther
Mar 29 '17 at 16:15













@bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

– Glori P.
Mar 30 '17 at 8:36







@bodhi.zazen, thank you! I took a look inside of it... there are a lot of information! but in particular what does it mean for "Replaces", and "Breaks"?

– Glori P.
Mar 30 '17 at 8:36















Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

– Panther
Mar 31 '17 at 15:47







Now you are asking very broad questions about apt and packaging. You can read the man pages, packaging guide, and debian.org/doc/manuals/debian-reference/ch02.en.html see section "2.1.6. Package dependencies"

– Panther
Mar 31 '17 at 15:47















@GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

– Anwar
Apr 16 '17 at 15:47





@GloriP. Please ask question specifically regarding "Replaces" and "Breaks" Thought the link will help

– Anwar
Apr 16 '17 at 15:47










2 Answers
2






active

oldest

votes


















2














Some details can be found at https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_dpkg_command



As best as I can tell from reading that, the status file contains status information (of course) about packages.



Based on looking at my own status file, most packages seem to have "Status: install ok installed" (I've found thousands of these). I assume this means that those packages are installed properly. I have a couple dozen or so packages that have some other package.






share|improve this answer































    0














    I came to this question when I needed to find what repository given version comes from, and it looks like /var/lib/dpkg/status means currently installed package, and in the OP's example it show that the version is installed, but not currently available from any repository.



    This is output I get when the package is available:



    # apt-cache policy dpkg
    dpkg:
    Installed: 1.16.18
    Candidate: 1.16.18
    Version table:
    *** 1.16.18 0
    500 http://repo/mirror/debian/ wheezy/main amd64 Packages
    100 /var/lib/dpkg/status
    1.16.17 0
    500 http://repo/mirror/debian/ wheezy-security/main amd64 Packages





    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%2f898163%2fwhat-is-the-file-var-lib-dpkg-status-about-and-why-do-i-need-it%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









      2














      Some details can be found at https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_dpkg_command



      As best as I can tell from reading that, the status file contains status information (of course) about packages.



      Based on looking at my own status file, most packages seem to have "Status: install ok installed" (I've found thousands of these). I assume this means that those packages are installed properly. I have a couple dozen or so packages that have some other package.






      share|improve this answer




























        2














        Some details can be found at https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_dpkg_command



        As best as I can tell from reading that, the status file contains status information (of course) about packages.



        Based on looking at my own status file, most packages seem to have "Status: install ok installed" (I've found thousands of these). I assume this means that those packages are installed properly. I have a couple dozen or so packages that have some other package.






        share|improve this answer


























          2












          2








          2







          Some details can be found at https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_dpkg_command



          As best as I can tell from reading that, the status file contains status information (of course) about packages.



          Based on looking at my own status file, most packages seem to have "Status: install ok installed" (I've found thousands of these). I assume this means that those packages are installed properly. I have a couple dozen or so packages that have some other package.






          share|improve this answer













          Some details can be found at https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_the_dpkg_command



          As best as I can tell from reading that, the status file contains status information (of course) about packages.



          Based on looking at my own status file, most packages seem to have "Status: install ok installed" (I've found thousands of these). I assume this means that those packages are installed properly. I have a couple dozen or so packages that have some other package.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 18 '17 at 7:07









          allyourcodeallyourcode

          12410




          12410

























              0














              I came to this question when I needed to find what repository given version comes from, and it looks like /var/lib/dpkg/status means currently installed package, and in the OP's example it show that the version is installed, but not currently available from any repository.



              This is output I get when the package is available:



              # apt-cache policy dpkg
              dpkg:
              Installed: 1.16.18
              Candidate: 1.16.18
              Version table:
              *** 1.16.18 0
              500 http://repo/mirror/debian/ wheezy/main amd64 Packages
              100 /var/lib/dpkg/status
              1.16.17 0
              500 http://repo/mirror/debian/ wheezy-security/main amd64 Packages





              share|improve this answer




























                0














                I came to this question when I needed to find what repository given version comes from, and it looks like /var/lib/dpkg/status means currently installed package, and in the OP's example it show that the version is installed, but not currently available from any repository.



                This is output I get when the package is available:



                # apt-cache policy dpkg
                dpkg:
                Installed: 1.16.18
                Candidate: 1.16.18
                Version table:
                *** 1.16.18 0
                500 http://repo/mirror/debian/ wheezy/main amd64 Packages
                100 /var/lib/dpkg/status
                1.16.17 0
                500 http://repo/mirror/debian/ wheezy-security/main amd64 Packages





                share|improve this answer


























                  0












                  0








                  0







                  I came to this question when I needed to find what repository given version comes from, and it looks like /var/lib/dpkg/status means currently installed package, and in the OP's example it show that the version is installed, but not currently available from any repository.



                  This is output I get when the package is available:



                  # apt-cache policy dpkg
                  dpkg:
                  Installed: 1.16.18
                  Candidate: 1.16.18
                  Version table:
                  *** 1.16.18 0
                  500 http://repo/mirror/debian/ wheezy/main amd64 Packages
                  100 /var/lib/dpkg/status
                  1.16.17 0
                  500 http://repo/mirror/debian/ wheezy-security/main amd64 Packages





                  share|improve this answer













                  I came to this question when I needed to find what repository given version comes from, and it looks like /var/lib/dpkg/status means currently installed package, and in the OP's example it show that the version is installed, but not currently available from any repository.



                  This is output I get when the package is available:



                  # apt-cache policy dpkg
                  dpkg:
                  Installed: 1.16.18
                  Candidate: 1.16.18
                  Version table:
                  *** 1.16.18 0
                  500 http://repo/mirror/debian/ wheezy/main amd64 Packages
                  100 /var/lib/dpkg/status
                  1.16.17 0
                  500 http://repo/mirror/debian/ wheezy-security/main amd64 Packages






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 15 at 9:46









                  cheche

                  1034




                  1034






























                      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%2f898163%2fwhat-is-the-file-var-lib-dpkg-status-about-and-why-do-i-need-it%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

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      Touch on Surface Book