Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?]
- Date: Sat, 25 Mar 2017 10:50:50 +0000 (UTC)
- From: Curt <curty@xxxxxxx>
- Subject: Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?]
On 2017-03-24, David Wright <deblis@xxxxxxxxxxxxxxxxx> wrote:
> Good point. I noticed that the two .bin files in /var/cache/apt/ that
> mentioned, come and go with apt-get update and clean respectively.
> I had overlooked how ephemeral they are. They're built from scratch at
> the "Reading package lists... Done" line after the Fetched line.
> If your only sources are the DVDs then I can't see a problem with just
> adding those files (or whatever the names are of any files that
> appear—they could differ with apt-cdrom) to your list of files you
> (OP) share between systems. It's tricky to check what's actually
> in them as they're binary databases (what I called "hidden"
> information previously).
Actually, srcpkgcache.bin includes the information contained in the files
in /var/lib/apt/lists; that is, all the info you obtain from the internet
via your deb and deb-src lines -- this information changes only on
pkgcache.bin caches the information in srcpkgcache.bin + the information
extracted from the apt and dpkg status files. This info changes on every
install/remove done by apt or directly by dpkg.
The above scandalously pilfered from David Kalnischkies here:
You can run 'strings' on pkgcache.bin BTW.
curty@einstein:/var/cache/apt$ strings pkgcache.bin | less
Debian Package Index
It doesn't appear that tricky.