l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 2: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2004 Aug 14 05:15

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Debian Unstable - apt strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Debian Unstable - apt strangeness



On Fri, Aug 13, 2004 at 04:45:37PM -0700, Rick Moen wrote:
> 
> Quoting David Hummel (dhml@comcast.net):
> 
> > dpkg must know about available packages since:
> > 
> > $ dpkg -l package-name-pattern
> > 
> > lists available packages (apparently from /var/lib/dpkg/available)
> > regardless of whether they're installed.
> 
> Perhaps I was a bit unclear:  dpkg knows only about what's in
> /var/lib/dpkg/status.  It can glean information about uninstalled
> packages from that file only because apt puts that data there.

That's what I suspected, thanks for confirming.  It's not obvious from
the man pages.

> I was extremely vaguely aware that /var/lib/dpkg/status includes
> stanzas about uninstalled packages, but that fact tends to slip my
> mind because I don't use it:   The useful way to use "dpkg -l ..." is
> without globs, which, for reasons I haven't looked into, omits
> uninstalled packages from the return values.  Which is what I said
> before.
> 
> > Therefore, it's a bit misleading that dpkg -l with no
> > package-name-pattern only lists installed packages.
> > 
> > So how is /var/lib/dpkg/available generated if not from apt?
> 
> I'm utterly mystified as to how you could think I said otherwise.

You didn't say otherwise, you just didn't say it.  And since I wasn't
completely aware of it ...

> apt pulls down (among other things) *Packages files from the various
> sources into /var/lib/apt/lists, then merges them to form a single
> /var/lib/dpkg/available file.  _Of course_ it's generated by apt.

Again, thanks for clarifying.

-David
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.