Re: Using ISO images as a repository

2020-01-15 Thread Brian
On Sat 04 Jan 2020 at 12:48:56 +, Brian wrote:

> On Fri 03 Jan 2020 at 14:36:38 -0600, Richard Owlett wrote:
> 
> > Not an acceptable solution.
> > Debian can deal simply with repositories  on multiple sites.
> > Why not deal similarly with repositories on multiple files?
> 
> David Wright has offered apt-cacher-ng as a solution and I will mention
> apt-cdrom. There is enough there to keep you occupied until mid-2020. :)

What goes around comes around.

  https://lists.debian.org/debian-user/2020/01/msg00477.html

The problem is that you have labelled loop mounting an ISO as a kludge
and see https://wiki.debian.org/Installation+Archive+USBStick as not
offering a solution. Having eliminated the only two viable alternatives,
there isn't anything to offer. Other users would wonder what it is that
you want to do.

I am loath to say it, but your approach to this issue is not acceptable.

-- 
Brian.



Re: Using ISO images as a repository

2020-01-04 Thread Brian
On Fri 03 Jan 2020 at 23:16:29 +, Brian wrote:

> On Fri 03 Jan 2020 at 14:36:38 -0600, Richard Owlett wrote:
> 
> > On 01/03/2020 12:38 PM, Brian wrote:
> > > On Fri 03 Jan 2020 at 10:30:24 -0600, Richard Owlett wrote:
> > > 
> > > > I have a large hard disk but a low data cap on my internet connection.
> > > 
> > > Into every life a little rain must fall.
> > > > I have all the distribution DVDs stored as *.ISO files in a single
> > > > directory on my hard disk.
> > > 
> > > Splendid; all you have to do is extract the files you want from the
> > > ISOs.
> > 
> > Not an acceptable solution.
> 
> Fine, don't use the technique.  It is a solution that is well-tested,
> employed by many users, works reliably and is capable of constructing
> a single repository.

And one you could benefit from. Not choosing it leaves you with one
other option or going round in circles.
 
> > Debian can deal simply with repositories  on multiple sites.
> > Why not deal similarly with repositories on multiple files?
> 
> Each repository that apt deals with on a site is a unified, coherent,
> organised, single repository. When you find a way of dealing with the
> discrete repository on each ISO, please let us know.

Have you got the idea now? You can either deal with each ISO repository
one by one or you can construct a single archive as detailed at

  https://wiki.debian.org/Installation+Archive+USBStick

-- 
Brian.



Re: Using ISO images as a repository

2020-01-04 Thread Brian
On Sat 04 Jan 2020 at 10:19:15 +0100, to...@tuxteam.de wrote:

> And... the story of user-mounting is admittedly a bit incomplete at
> the moment. Mounting a file system is a somewhat dangerous operation,
> because file system code is fiendishly complex, and due to historical
> reasons (changing a storage device required screwdrivers not a long
> ago) mounting a file system was considered to be Something For The
> Admin (TM). But we're getting there.

I have no problem mounting an ISO image as a user:

  brian@desktop:~/buster-jigdo$ udevil mount debian-10.2.0-i386-DVD-1.iso
  Mounted /home/brian/buster-jigdo/debian-10.2.0-i386-DVD-1.iso at 
/media/debian-10.2.0-i386-DVD-1.iso

  brian@desktop:~/buster-jigdo$ mount
  /dev/loop0 on /media/debian-10.2.0-i386-DVD-1.iso type iso9660 
(ro,nosuid,nodev,noexec,noatime,uid=1000,gid=1000)

I feel I am misunderstanding you.

-- 
Brian.



Re: Using ISO images as a repository

2020-01-04 Thread Brian
On Fri 03 Jan 2020 at 14:36:38 -0600, Richard Owlett wrote:

> On 01/03/2020 12:38 PM, Brian wrote:
> > On Fri 03 Jan 2020 at 10:30:24 -0600, Richard Owlett wrote:
> > 
> > > I have a large hard disk but a low data cap on my internet connection.
> > 
> > Into every life a little rain must fall.
> > > I have all the distribution DVDs stored as *.ISO files in a single
> > > directory on my hard disk.
> > 
> > Splendid; all you have to do is extract the files you want from the
> > ISOs.
> 
> Not an acceptable solution.
> Debian can deal simply with repositories  on multiple sites.
> Why not deal similarly with repositories on multiple files?

David Wright has offered apt-cacher-ng as a solution and I will mention
apt-cdrom. There is enough there to keep you occupied until mid-2020. :)

__ 
Brian



Re: Using ISO images as a repository

2020-01-04 Thread tomas
On Fri, Jan 03, 2020 at 11:16:29PM +, Brian wrote:

[...]

> > Debian can deal simply with repositories  on multiple sites.
> > Why not deal similarly with repositories on multiple files?
> 
> Each repository that apt deals with on a site is a unified, coherent,
> organised, single repository. When you find a way of dealing with the
> discrete repository on each ISO, please let us know.

*And* -- not to be forgotten, the file systems the packages reside in
are *all mounted, all the time* (although they're probably something
else than ISO). Is there a pattern?

Sorry if it sounds a bit sarcastic. It was somewhat tongue-in-cheek
admittedly, although not really in bad intention.

Richard, an ISO file system is a *file system*. The intended way to
access its innards is mounting it.

And... the story of user-mounting is admittedly a bit incomplete at
the moment. Mounting a file system is a somewhat dangerous operation,
because file system code is fiendishly complex, and due to historical
reasons (changing a storage device required screwdrivers not a long
ago) mounting a file system was considered to be Something For The
Admin (TM). But we're getting there.

Getting it wrong leads to a never-ending sitcom, as Microsoft has
shown (remember boot sector virus? remember those music CDs by
Sony BMG which installed a malw --eh-- driver on your Windows
computer which controlled the number of copies you could make of
things? Remember Stuxnet, whose vector into some highly secured
uranium enrichment plant reportedly were USB sticks?). Those are
but three randomly chosen sequences of a long chain of pain.

So I'm glad we're moving somewhat slowly in that area. But I
disgress.

Cheers
-- tomás


signature.asc
Description: Digital signature


Re: Using ISO images as a repository

2020-01-03 Thread David Wright
On Fri 03 Jan 2020 at 14:22:46 (-0600), Richard Owlett wrote:
> On 01/03/2020 10:51 AM, David Wright wrote:
> > On Fri 03 Jan 2020 at 10:30:24 (-0600), Richard Owlett wrote:
> > > I have a large hard disk but a low data cap on my internet connection.
> > > 
> > > I have all the distribution DVDs stored as *.ISO files in a single
> > > directory on my hard disk.
> > > 
> > > It would *SEEM* to be logical to use the "file option" of sources.list .
> > > HOWEVER, all I've ever seen is the kludge of individually loop
> > > mounting all the ISO files.
> > > 
> > > Is that my only option?
> > > TIA
> > 
> > Is this a rerun of the thread
> > https://lists.debian.org/debian-user/2019/05/msg01463.html
> > https://lists.debian.org/debian-user/2019/06/msg00040.html
> > https://lists.debian.org/debian-user/2019/06/msg00042.html
> > 
> 
> Overly simplistic answer:  No
> Better answer:
> No. That thread had a different starting point and a different goal.
> However, when viewed as multidimensional surfaces, they intersect.

Well the starting point appears to be ISOs stored on hard drives
rather than on the original DVDs, and the goal appears to be
installing packages, and perhaps systems, from them using the usual
Debian tools like apt and synaptic. Perhaps you could point out
the differences.

My suggestion obviously remains the same, which is to feed the debs
to apt-cacher-ng for it to sort out into a repository, and install
packages from there. For installing packages, the client and server
can be the same machine, but obviously not when you're installing
systems, which, on past form, you intend to do.

apt-cacher-ng should be able to meld not only multiple DVDs from the
same Debian release, but also cope with a number of releases,
though I would always recommend that apt-cacher-ng be run on a
release no older than those it's caching for. It usually works
(my wheezy one served wheezy, jessie and stretch systems), but can
get tripped up occasionally by things like new compression formats.

Despite the many threads in this place that concern how you might
connect two of your machines to form a network, I have no idea whether
you ever achieved this feat, but it would be required for performing
installing systems.

> Brian pointed to https://wiki.debian.org/ManipulatingISOs .
> Section 4. "Loopmount an ISO Without Administrative Privileges" may
> hint at a solution to my *current* problem.
> 
> I'll have to re-read some posts in thread you referenced.

I was under the impression that the appropriate line in sources.list
had been revealed by Brian during a series of soliloquies in the
thread referred to above. But again, that might work with installing
packages rather than systems. (Both threads only said "*using* ISO
images as repositories".)

> Part of the problem revolves around how Linux is documented. Although
> I've flunked a number of college composition courses over last
> decades, I do recall a dictum "Who is your audience?"

I presume that's some sort of veiled criticism of the fact that the
Debian and linux documentation doesn't in general address your
specific and unusual problems. There do exist *books*, and I've
previously posted links for free downloads of older editions of
some of them.

Cheers,
David.



Re: Using ISO images as a repository

2020-01-03 Thread Brian
On Fri 03 Jan 2020 at 14:36:38 -0600, Richard Owlett wrote:

> On 01/03/2020 12:38 PM, Brian wrote:
> > On Fri 03 Jan 2020 at 10:30:24 -0600, Richard Owlett wrote:
> > 
> > > I have a large hard disk but a low data cap on my internet connection.
> > 
> > Into every life a little rain must fall.
> > > I have all the distribution DVDs stored as *.ISO files in a single
> > > directory on my hard disk.
> > 
> > Splendid; all you have to do is extract the files you want from the
> > ISOs.
> 
> Not an acceptable solution.

Fine, don't use the technique.  It is a solution that is well-tested,
employed by many users, works reliably and is capable of constructing
a single repository.

> Debian can deal simply with repositories  on multiple sites.
> Why not deal similarly with repositories on multiple files?

Each repository that apt deals with on a site is a unified, coherent,
organised, single repository. When you find a way of dealing with the
discrete repository on each ISO, please let us know.

> > > There is an excellent wiki page detailing a number of techniques
> > at
> > 
> >https://wiki.debian.org/ManipulatingISOs
> 
> Section 4: Loopmount an ISO Without Administrative Privileges
> gives intriguing hints with a *VAST* lack of details.
> [will search man pages]
> 
> > 
> > > It would *SEEM* to be logical to use the "file option" of sources.list .
> > > HOWEVER, all I've ever seen is the kludge of individually loop mounting 
> > > all
> > > the ISO files.
> > 
> > If the logical method doesn't work for you, it is likely that the logic
> > is flawed. There is a superb wiki page at
> > 
> >https://wiki.debian.org/Installation+Archive+USBStick
> 
> That references a *VERY* different problem set.
> > 
> > That should make your New Year happier.
> 
> rofl

It is possible that I have misunderstood the issue. Your starting point
appears to be the Debian files on your ISO files. What is is your desired
end point?

-- 
Brian.
> 
> 
> 
> 



Re: Using ISO images as a repository

2020-01-03 Thread Richard Owlett

On 01/03/2020 12:38 PM, Brian wrote:

On Fri 03 Jan 2020 at 10:30:24 -0600, Richard Owlett wrote:


I have a large hard disk but a low data cap on my internet connection.


Into every life a little rain must fall.
  
I have all the distribution DVDs stored as *.ISO files in a single 
directory on my hard disk.


Splendid; all you have to do is extract the files you want from the
ISOs.


Not an acceptable solution.
Debian can deal simply with repositories  on multiple sites.
Why not deal similarly with repositories on multiple files?



There is an excellent wiki page detailing a number of techniques

at

   https://wiki.debian.org/ManipulatingISOs


Section 4: Loopmount an ISO Without Administrative Privileges
gives intriguing hints with a *VAST* lack of details.
[will search man pages]




It would *SEEM* to be logical to use the "file option" of sources.list .
HOWEVER, all I've ever seen is the kludge of individually loop mounting all
the ISO files.


If the logical method doesn't work for you, it is likely that the logic
is flawed. There is a superb wiki page at

   https://wiki.debian.org/Installation+Archive+USBStick


That references a *VERY* different problem set.


That should make your New Year happier.


rofl






Re: Using ISO images as a repository

2020-01-03 Thread Richard Owlett

On 01/03/2020 10:51 AM, David Wright wrote:

On Fri 03 Jan 2020 at 10:30:24 (-0600), Richard Owlett wrote:

I have a large hard disk but a low data cap on my internet connection.

I have all the distribution DVDs stored as *.ISO files in a single
directory on my hard disk.

It would *SEEM* to be logical to use the "file option" of sources.list .
HOWEVER, all I've ever seen is the kludge of individually loop
mounting all the ISO files.

Is that my only option?
TIA


Is this a rerun of the thread
https://lists.debian.org/debian-user/2019/05/msg01463.html
https://lists.debian.org/debian-user/2019/06/msg00040.html
https://lists.debian.org/debian-user/2019/06/msg00042.html



Overly simplistic answer:  No
Better answer:
No. That thread had a different starting point and a different goal.
However, when viewed as multidimensional surfaces, they intersect.

Brian pointed to https://wiki.debian.org/ManipulatingISOs .
Section 4. "Loopmount an ISO Without Administrative Privileges" may
hint at a solution to my *current* problem.

I'll have to re-read some posts in thread you referenced.
Part of the problem revolves around how Linux is documented. Although 
I've flunked a number of college composition courses over last decades, 
I do recall a dictum "Who is your audience?"






Re: Using ISO images as a repository

2020-01-03 Thread Brian
On Fri 03 Jan 2020 at 10:30:24 -0600, Richard Owlett wrote:

> I have a large hard disk but a low data cap on my internet connection.

Into every life a little rain must fall.
 
> I have all the distribution DVDs stored as *.ISO files in a single directory
> on my hard disk.

Splendid; all you have to do is extract the files you want from the
ISOs. There is an excellent wiki page detailing a number of techniques
at

  https://wiki.debian.org/ManipulatingISOs

> It would *SEEM* to be logical to use the "file option" of sources.list .
> HOWEVER, all I've ever seen is the kludge of individually loop mounting all
> the ISO files.

If the logical method doesn't work for you, it is likely that the logic
is flawed. There is a superb wiki page at

  https://wiki.debian.org/Installation+Archive+USBStick

That should make your New Year happier.

-- 
Brian.



Re: Using ISO images as a repository

2020-01-03 Thread David Wright
On Fri 03 Jan 2020 at 10:30:24 (-0600), Richard Owlett wrote:
> I have a large hard disk but a low data cap on my internet connection.
> 
> I have all the distribution DVDs stored as *.ISO files in a single
> directory on my hard disk.
> 
> It would *SEEM* to be logical to use the "file option" of sources.list .
> HOWEVER, all I've ever seen is the kludge of individually loop
> mounting all the ISO files.
> 
> Is that my only option?
> TIA

Is this a rerun of the thread
https://lists.debian.org/debian-user/2019/05/msg01463.html
https://lists.debian.org/debian-user/2019/06/msg00040.html
https://lists.debian.org/debian-user/2019/06/msg00042.html

Cheers,
David.



Re: Using ISO images as a repository

2020-01-03 Thread Michael Howard

On 03/01/2020 16:30, Richard Owlett wrote:

I have a large hard disk but a low data cap on my internet connection.

I have all the distribution DVDs stored as *.ISO files in a single 
directory on my hard disk.


It would *SEEM* to be logical to use the "file option" of sources.list .
HOWEVER, all I've ever seen is the kludge of individually loop 
mounting all the ISO files.


Is that my only option?
TIA


No, not your only option. You could copy all the files locally and use 
dpkg-scanpackages. You could use reprepro. There are many ways to skin a 
cat.


--
Michael Howard



Using ISO images as a repository

2020-01-03 Thread Richard Owlett

I have a large hard disk but a low data cap on my internet connection.

I have all the distribution DVDs stored as *.ISO files in a single 
directory on my hard disk.


It would *SEEM* to be logical to use the "file option" of sources.list .
HOWEVER, all I've ever seen is the kludge of individually loop mounting 
all the ISO files.


Is that my only option?
TIA