<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1">On 2/9/2013 4:19 PM, Jonathan Marsden wrote:</font><br>
    <blockquote cite="mid:5116BD64.1090807@fastmail.fm" type="cite">
      <pre wrap="">On 02/09/2013 07:45 AM, John Hupp wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Regarding my last question below, I now see that Synaptic uses dpkg, 
so it seems very likely that despite the language of some of the 
documentation, there is probably only one package database shared by 
all the relevant tools.  Enlighten me if that's incorrect.
</pre>
      </blockquote>
      <pre wrap="">
Both /var/lib/dpkg/ and /var/cache/apt/ exist on my systems, and both
contain data about packages.  So in that general sense, I suspect you
are incorrect.

However, in practice, it may be that apt keeps additional information
(possibly about dependencies and why certain packages were installed)
that dpkg does not, in which case you can use both dpkg and apt to do
package management on the same PC with no problem.  This is my personal
experience, at least.

My best guess, therefore, is that apt uses the dpkg data about packages,
but maintains some additional info for commands and capabilities it has,
which dpkg does not.  I've not needed to look into this is more depth
than that (such as by reading detailed apt docs and/or the apt source
code) to find out exactly what apt stores and why it needs it.

Jonathan


</pre>
    </blockquote>
    <font size="-1"><br>
      Thanks, I appreciate the nuances of that reasonable explanation.</font><br>
  </body>
</html>