Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #178953 > unrolled thread
| Started by | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| First post | 2017-03-17 14:50 +0100 |
| Last post | 2017-03-24 19:40 +0100 |
| Articles | 4 on this page of 44 — 11 participants |
Back to article view | Back to linux.debian.user
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
Page 3 of 3 — ← Prev page 1 2 [3]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-03-25 14:10 +0100 |
| Subject | Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?] |
| Message-ID | <toTC9-1eQ-3@gated-at.bofh.it> |
| In reply to | #179286 |
On Fri 24 Mar 2017 at 16:31:25 -0500, David Wright wrote:
> On Thu 23 Mar 2017 at 11:29:38 (+0000), Brian wrote:
> > On Thu 23 Mar 2017 at 10:12:57 +0000, Darac Marjal wrote:
> >
> > > On Wed, Mar 22, 2017 at 08:08:28PM -0500, Richard Owlett wrote:
> > > >On 03/17/2017 08:47 AM, Richard Owlett wrote:
> > > >>As I have limited bandwidth, I install from DVDs.
> > > >>Also I frequently experiment with various options by doing a fresh
> > > >>install to a different partition.
> > > >>It is annoying to keep re-scanning a set of 13 DVDs.
> > > >>Where is the information stored?
> > > >>/etc/apt/sources.list is obvious, but where is the data about contents
> > > >>of each DVD stored?
> > > >>TIA
> > > >
> > > >It had been suggested that all the needed information might be in
> > > >/etc/apt/sources.list
> > > > PLUS
> > > >the /var/lib/apt directory
> > > >
> > > >It ain't :{
> > >
> > > Looking at the source, apt-cdrom does a bunch of checks and then calls into
> > > pkgCdrom::Add()[1]. That does some more checks and then the interesting
> > > stuff seems to start around line 746.
> > >
> > > The Configuration Database (TODO: Find where this is stored... Ah, I *think*
> > > that's the /var/lib/apt/cdroms.list mentioned earlier) is checked for
> > > existance of the CD and updated, if necessary. The next interesting part is
> > > at line 838 where the packages are copied. This seems to happen in
> > > IndexCopy::CopyPackages()[2] which, at line 97, creates a file in
> > > /var/cache/apt/archives/partial/ containing the contents of the cdrom.
> > >
> > > [1] http://sources.debian.net/src/apt/1.4~rc2/apt-pkg/cdrom.cc/
> > > [2] http://sources.debian.net/src/apt/1.4~rc2/apt-pkg/indexcopy.cc/
> > >
> > >
> > > So, in summary, I think you need /etc/apt/sources.list, /var/lib/apt *AND*
> > > /var/cache/apt/archives.
> >
> > Suppose /var/cache/apt/archives is empty because 'apt-get clean' has
> > been run. What then?
>
> Good point. I noticed that the two .bin files in /var/cache/apt/ that
> https://lists.debian.org/debian-user/2017/03/msg00722.html
> 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).
It probably does no harm to transfer them to the target system but they
can be generated there from 'apt-get update'.
--
Brian.
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2017-03-25 22:10 +0100 |
| Subject | Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?] |
| Message-ID | <tp16F-6tM-1@gated-at.bofh.it> |
| In reply to | #179307 |
On Sat 25 Mar 2017 at 12:59:50 (+0000), Brian wrote:
> On Fri 24 Mar 2017 at 16:31:25 -0500, David Wright wrote:
>
> > On Thu 23 Mar 2017 at 11:29:38 (+0000), Brian wrote:
> > > On Thu 23 Mar 2017 at 10:12:57 +0000, Darac Marjal wrote:
> > >
> > > > On Wed, Mar 22, 2017 at 08:08:28PM -0500, Richard Owlett wrote:
> > > > >On 03/17/2017 08:47 AM, Richard Owlett wrote:
> > > > >>As I have limited bandwidth, I install from DVDs.
> > > > >>Also I frequently experiment with various options by doing a fresh
> > > > >>install to a different partition.
> > > > >>It is annoying to keep re-scanning a set of 13 DVDs.
> > > > >>Where is the information stored?
> > > > >>/etc/apt/sources.list is obvious, but where is the data about contents
> > > > >>of each DVD stored?
> > > > >>TIA
> > > > >
> > > > >It had been suggested that all the needed information might be in
> > > > >/etc/apt/sources.list
> > > > > PLUS
> > > > >the /var/lib/apt directory
> > > > >
> > > > >It ain't :{
> > > >
> > > > Looking at the source, apt-cdrom does a bunch of checks and then calls into
> > > > pkgCdrom::Add()[1]. That does some more checks and then the interesting
> > > > stuff seems to start around line 746.
> > > >
> > > > The Configuration Database (TODO: Find where this is stored... Ah, I *think*
> > > > that's the /var/lib/apt/cdroms.list mentioned earlier) is checked for
> > > > existance of the CD and updated, if necessary. The next interesting part is
> > > > at line 838 where the packages are copied. This seems to happen in
> > > > IndexCopy::CopyPackages()[2] which, at line 97, creates a file in
> > > > /var/cache/apt/archives/partial/ containing the contents of the cdrom.
> > > >
> > > > [1] http://sources.debian.net/src/apt/1.4~rc2/apt-pkg/cdrom.cc/
> > > > [2] http://sources.debian.net/src/apt/1.4~rc2/apt-pkg/indexcopy.cc/
> > > >
> > > >
> > > > So, in summary, I think you need /etc/apt/sources.list, /var/lib/apt *AND*
> > > > /var/cache/apt/archives.
> > >
> > > Suppose /var/cache/apt/archives is empty because 'apt-get clean' has
> > > been run. What then?
> >
> > Good point. I noticed that the two .bin files in /var/cache/apt/ that
> > https://lists.debian.org/debian-user/2017/03/msg00722.html
> > 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).
>
> It probably does no harm to transfer them to the target system but they
> can be generated there from 'apt-get update'.
In which case I can't think of any files other than those under
/var/lib/apt/, which always seemed correct to me for index files.
So my parting suggestion is running synaptic under strace and
examining the output at the time it becomes disgruntled and wants
those DVDs to be scanned (which is what the OP wants to avoid having
to do). If that fails, the source of apt/apt-cdrom can be downloaded
and read, which should settle the OP's waters.
Cheers,
David.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2017-03-26 14:30 +0200 |
| Subject | Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?] |
| Message-ID | <tpfsZ-8iN-11@gated-at.bofh.it> |
| In reply to | #179324 |
On 03/25/2017 04:05 PM, David Wright wrote: > [snip] > > So my parting suggestion is running synaptic under strace and > examining the output at the time it becomes disgruntled and wants > those DVDs to be scanned (which is what the OP wants to avoid having > to do). If that fails, the source of apt/apt-cdrom can be downloaded > and read, which should settle the OP's waters. > The higher priority project to which I referred to in my last post has calmed down. It will likely proceed faster if I take some breaks from it. The utility that someone had referred to a couple of years ago was indeed "find". I had not previously heard of "strace". I'm sketching out a script to use those in combination with "apt-cdrom" and "script". I expect to review tutorials on "find" and "strace" this afternoon to decide which options for each would be useful. Tomorrow's weather will encourage indoor activities ;/
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2017-03-24 19:40 +0100 |
| Subject | Re: An INCOMPLETE solution - was [Re: Where is data stored when Synaptic scans DVDs?] |
| Message-ID | <toChY-5vt-13@gated-at.bofh.it> |
| In reply to | #179172 |
On Wed 22 Mar 2017 at 20:08:28 -0500, Richard Owlett wrote:
> On 03/17/2017 08:47 AM, Richard Owlett wrote:
> >As I have limited bandwidth, I install from DVDs.
> >Also I frequently experiment with various options by doing a fresh
> >install to a different partition.
> >It is annoying to keep re-scanning a set of 13 DVDs.
> >Where is the information stored?
> >/etc/apt/sources.list is obvious, but where is the data about contents
> >of each DVD stored?
> >TIA
>
> It had been suggested that all the needed information might be in
> /etc/apt/sources.list
> PLUS
> the /var/lib/apt directory
>
> It ain't :{
Perhaps it is not possible to say which information is missing. However,
it should be possible to indicate why you think it is (other than a
feeling in your waters :) ).
> I'll scan the DVD's as I have an immediate need to add several packages to
> my current active install.
>
> About 18 months to 2 years ago someone had suggested in a totally unrelated
> thread a brute force method to trace file modifications which are either
> undocumented or incompletely documented. I'll search my personal archives
> for that methodology and apply it.
Good luck with that. I'd use
find /var/ -mmin 5 -ls
after adding a CD.
--
Brian.
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | linux.debian.user
csiph-web