Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #179510

Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?]

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?]
Date 2017-03-28 04:50 +0200
Message-ID <tpPmN-YV-7@gated-at.bofh.it> (permalink)
References (3 earlier) <to96h-1uL-1@gated-at.bofh.it> <toF6a-7By-25@gated-at.bofh.it> <toRAm-85v-5@gated-at.bofh.it> <tp3i9-7XU-5@gated-at.bofh.it> <tpeGB-7FH-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 26 Mar 2017 at 11:31:57 (+0000), Curt wrote:
> On 2017-03-25, David Wright <deblis@lionunicorn.co.uk> wrote:
> > On Sat 25 Mar 2017 at 10:50:50 (+0000), Curt wrote:
> >> 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
> >> apt-get update.
> >> 
> >> 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:
> >> 
> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566275
> >
> > Thanks for the useful reference. Whether it ties in to what apt-cdrom
> > does, I don't know and have no way of testing.
> 
> It ties in to the context that you snipped; i.e. "the two .bin files in
> /var/cache/apt" and how you found it "tricky to check what's actually
> in them."
> 
> Well, maybe it is tricky to "check" but not to know what's in those two
> files (if we can depend on the other David), a distinction that may not
> be of much use or significance.
> 
> >> You can run 'strings' on pkgcache.bin BTW.
> >> 
> >> curty@einstein:/var/cache/apt$ strings pkgcache.bin | less
[...]
> >> It doesn't appear that tricky.
> >
> > What doesn't?
> >
> > Getting a ¼million-line output file is straightforward, but
> > have you tried to interpret it? What do you think it shows?
> >
> 
> Package names, versions, 'Description-md5' as far as I can tell is what
> is "actually" and obviously contained in the file, verifiable with very
> little effort via 'strings',

Yes, one might expect items like this in a file maintained by apt!
You can also see from the head of the file that the most of the
"versions" are not the versions of the packages but are actually
constraints, ie dependencies/replacements/breakages etc. all just
jumbled up.

Within this jumble, I think it would be difficult to unambiguously
locate information that was specific to apt-cdrom or synaptic, were
either of these to add information not covered by your reference.

$ ls -l /var/cache/apt/srcpkgcache.bin 
... 22531192 Mar 27 21:00 /var/cache/apt/srcpkgcache.bin
$ strings /var/cache/apt/srcpkgcache.bin | wc -c
3655511
$ 
so the output of strings amounts to about 16% which means that
84% could be "hiding" other information from our eyes.

I've never looked at (let alone examined) these files after scanning
CDs with synaptic (assuming these same filenames are used), so I have
no idea whether they contain the same information as apt-get update
writes, or more. And as for what   man apt-cdrom   means by
"correcting for several possible mis-burns", I have no idea.

> beyond that I ain't gonna go because I have
> other things to do. Sorry I'm writing the story of my life and there are
> many many chapters.

I'm sorry too. And for causing a disturbance.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-17 14:50 +0100
  Re: Where is data stored when Synaptic scans DVDs? Jonathan Dowland <jmtd@debian.org> - 2017-03-17 15:30 +0100
  Re: Where is data stored when Synaptic scans DVDs? songbird <songbird@anthive.com> - 2017-03-17 17:20 +0100
    Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-17 21:40 +0100
      Re: Where is data stored when Synaptic scans DVDs? Brian <ad44@cityscape.co.uk> - 2017-03-17 22:00 +0100
        Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-17 23:30 +0100
        Re: Where is data stored when Synaptic scans DVDs? GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-18 18:40 +0100
          Re: Where is data stored when Synaptic scans DVDs? Brian <ad44@cityscape.co.uk> - 2017-03-18 19:00 +0100
            Re: Where is data stored when Synaptic scans DVDs? GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-18 20:30 +0100
              Re: Where is data stored when Synaptic scans DVDs? Brian <ad44@cityscape.co.uk> - 2017-03-19 00:20 +0100
                Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-19 12:40 +0100
                Re: Where is data stored when Synaptic scans DVDs? David Wright <deblis@lionunicorn.co.uk> - 2017-03-19 14:20 +0100
                Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-19 15:00 +0100
                Re: Where is data stored when Synaptic scans DVDs? David Wright <deblis@lionunicorn.co.uk> - 2017-03-20 05:30 +0100
                Re: Where is data stored when Synaptic scans DVDs? Brian <ad44@cityscape.co.uk> - 2017-03-21 00:10 +0100
                Re: Where is data stored when Synaptic scans DVDs? David Wright <deblis@lionunicorn.co.uk> - 2017-03-21 02:30 +0100
                Re: Where is data stored when Synaptic scans DVDs? Brian <ad44@cityscape.co.uk> - 2017-03-21 21:40 +0100
                Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-22 11:00 +0100
                Re: Where is data stored when Synaptic scans DVDs? Lisi Reisz <lisi.reisz@gmail.com> - 2017-03-21 03:30 +0100
                Re: Where is data stored when Synaptic scans DVDs? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-03-21 13:20 +0100
                Re: Where is data stored when Synaptic scans DVDs? Lisi Reisz <lisi.reisz@gmail.com> - 2017-03-25 13:00 +0100
          Re: Where is data stored when Synaptic scans DVDs? Curt <curty@free.fr> - 2017-03-18 19:10 +0100
      Re: Where is data stored when Synaptic scans DVDs? David Wright <deblis@lionunicorn.co.uk> - 2017-03-18 04:50 +0100
        Re: Where is data stored when Synaptic scans DVDs? Richard Owlett <rowlett@cloud85.net> - 2017-03-18 11:40 +0100
      Re: Where is data stored when Synaptic scans DVDs? songbird <songbird@anthive.com> - 2017-03-18 19:40 +0100
        Re: Where is data stored when Synaptic scans DVDs? deloptes <deloptes@gmail.com> - 2017-03-18 20:30 +0100
          Re: Where is data stored when Synaptic scans DVDs? songbird <songbird@anthive.com> - 2017-03-19 04:00 +0100
  Re: Where is data stored when Synaptic scans DVDs? Curt <curty@free.fr> - 2017-03-18 12:00 +0100
  An INCOMPLETE solution - was [Re: Where is data stored when Synaptic  scans DVDs?] Richard Owlett <rowlett@cloud85.net> - 2017-03-23 02:10 +0100
    Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Brian <ad44@cityscape.co.uk> - 2017-03-23 10:50 +0100
    Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Darac Marjal <mailinglist@darac.org.uk> - 2017-03-23 11:20 +0100
      Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Brian <ad44@cityscape.co.uk> - 2017-03-23 12:30 +0100
        Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] David Wright <deblis@lionunicorn.co.uk> - 2017-03-24 22:40 +0100
          Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Curt <curty@free.fr> - 2017-03-25 12:00 +0100
            Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] David Wright <deblis@lionunicorn.co.uk> - 2017-03-26 00:30 +0100
              Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Curt <curty@free.fr> - 2017-03-26 13:40 +0200
                Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] David Wright <deblis@lionunicorn.co.uk> - 2017-03-28 04:50 +0200
                Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Curt <curty@free.fr> - 2017-03-28 18:20 +0200
                Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] David Wright <deblis@lionunicorn.co.uk> - 2017-03-28 21:10 +0200
                Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Brian <ad44@cityscape.co.uk> - 2017-03-29 20:20 +0200
          Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Brian <ad44@cityscape.co.uk> - 2017-03-25 14:10 +0100
            Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] David Wright <deblis@lionunicorn.co.uk> - 2017-03-25 22:10 +0100
              Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Richard Owlett <rowlett@cloud85.net> - 2017-03-26 14:30 +0200
    Re: An INCOMPLETE solution - was [Re: Where is data stored when  Synaptic scans DVDs?] Brian <ad44@cityscape.co.uk> - 2017-03-24 19:40 +0100

csiph-web