Re: Can apt access a local cdrom?

1998-10-10 Thread Michael Beattie
On Fri, 9 Oct 1998, Dave Swegen wrote:

 On Fri, Oct 09, 1998 at 11:38 -0400, Jim Foltz wrote:
  On Fri, Oct 09, 1998 at 03:46:58PM +, Anthony Campbell wrote:
   I have succeeded in getting apt to connect to a distant ftp site but I've
   been unable to get it to access my cdrom drive, which currently has the
   Cheapbytes version of debian. I've tried every combination of deb 
   file:/cdrom
   I can think of but I keep getting malformed line in sources.list.  
   
   Is it possible to do this?  If so, how?
  
  First, mount the cd
  Then add the line:
  deb file:/cdrom/debian stable main
  (assuming you have the cd mounted under /cdrom and it is the stable/main cd)
  
 
 As a follow-up question to this: Is it possible to make apt aware of
 multiple CDs? I bought one of the cheapbytes sets, and thus have 3 CDs
 with different parts on them (main, contrib and non-free). Setting up the
 main CD so apt is aware of it is no problem, but the other two? Seems daft
 to have to use an ftp mirror when I have exactly the same stuff locally...

easy.. make a small directory tree, (/usr/local/debian) with each
Packages.gz within. i.e.:

debian/dists/hamm/main/binary-i386/Packages.gz
debian/dists/hamm/non-free/binary-i386/Packages.gz
debian/dists/hamm/contrib/binary-i386/Packages.gz

then fill the respective binary-i386 directories with symlinks to the
equivalent files/directories on the CD's. Then point apt at it as such:

deb file:/usr/local/debian hamm main non-free contrib

and update. that way, when one CD is in, you can use its resources, but
when you did the update, ALL Packages.gz were present, thus all packages
are visible. It's only downside is that dependencies between area's die.
but, just insert the different CD, mount it, and run install again. It
should ignore the packages on the CD you've just removed, as it has copied
them to /var/cache/apt/archives.

HTH,

   Michael Beattie ([EMAIL PROTECTED])

   PGP Key available, reply with pgpkey as subject.
 -
  If NT is the answer, you didn't understand the question. (NOTE: Stolen sig)
 -
Debian GNU/Linux  Ooohh You are missing out!



Re: Can apt access a local cdrom?

1998-10-10 Thread Anthony Campbell
On Fri, Oct 09, 1998 at 03:47:00PM -0400, John Forest wrote:
  Anthony Campbell wrote:
  
  
  No, I already tried this and it doesn't work. It gives unable to state
  /cdrom/debian/dists/stable/main/binary-i386/Packages.gz
  
  The problem seems to be that the file structure on my cdrom is
  /debian/main/binary-i386/.  Stable is a link to /debian/main.  This doesn't
  seem to be what  apt-get wants, and I don't seem to be able to tell it what
  to do.
  
 A quick solution is to use the absolute path as in:
   deb file:/cdrom/debian main/binary-i386/
   deb file:/cdrom/debian contrib/binary-i386/
   etc.
 Note the trailing slash after the binary-i386.  This indicates an absolute
 path.  Apt will look for: /cdrom/debian/main/binary-i386/Packages.gz etc.
 
 See man sources.list(5).
 
 John.
 

Brilliant! Yes, thanks, this is now working.  My problem previously was that
I was putting the whole path on one line, instead of leaving a space after
../debian.  

I think the man page for sources.list might be more clearly written, with
more examples. It's rather misleading as it stands.


Anthony


-- 
Anthony Campbell  -  running Linux Debian 2.0
[EMAIL PROTECTED]  http://www.achc.demon.co.uk




Re: Can apt access a local cdrom?

1998-10-10 Thread John Forest
Michael Beattie wrote:
 
 easy.. make a small directory tree, (/usr/local/debian) with each
 Packages.gz within. i.e.:
 
 debian/dists/hamm/main/binary-i386/Packages.gz
 debian/dists/hamm/non-free/binary-i386/Packages.gz
 debian/dists/hamm/contrib/binary-i386/Packages.gz
 
 then fill the respective binary-i386 directories with symlinks to the
 equivalent files/directories on the CD's. Then point apt at it as such:
 
 deb file:/usr/local/debian hamm main non-free contrib
 
 and update. that way, when one CD is in, you can use its resources, but
 when you did the update, ALL Packages.gz were present, thus all packages
 are visible. It's only downside is that dependencies between area's die.
 but, just insert the different CD, mount it, and run install again. It
 should ignore the packages on the CD you've just removed, as it has copied
 them to /var/cache/apt/archives.
 
I found it more convenient to copy the entire contrib and non-free to my hard
drive (about 130meg) and leave main mounted on /cdrom.

Doesn't break dependencies.

John.


Can apt access a local cdrom?

1998-10-09 Thread Anthony Campbell
I have succeeded in getting apt to connect to a distant ftp site but I've
been unable to get it to access my cdrom drive, which currently has the
Cheapbytes version of debian. I've tried every combination of deb file:/cdrom
I can think of but I keep getting malformed line in sources.list.  

Is it possible to do this?  If so, how?


-- 
Anthony Campbell  -  running Linux Debian 2.0
[EMAIL PROTECTED]  http://www.achc.demon.co.uk




Re: Can apt access a local cdrom?

1998-10-09 Thread Jim Foltz
On Fri, Oct 09, 1998 at 03:46:58PM +, Anthony Campbell wrote:
 I have succeeded in getting apt to connect to a distant ftp site but I've
 been unable to get it to access my cdrom drive, which currently has the
 Cheapbytes version of debian. I've tried every combination of deb file:/cdrom
 I can think of but I keep getting malformed line in sources.list.  
 
 Is it possible to do this?  If so, how?

First, mount the cd
Then add the line:
deb file:/cdrom/debian stable main
(assuming you have the cd mounted under /cdrom and it is the stable/main cd)


Anyway, add the line to /etc/apt/sources.list, and comment out all others.
Third, you can use dselect's apt method as usual, or use apt-get from the
command line.


 
 
 -- 
 Anthony Campbell  -  running Linux Debian 2.0
 [EMAIL PROTECTED]  http://www.achc.demon.co.uk
 
 
 
 
 --  
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
Jim Foltz [EMAIL PROTECTED]


Re: Can apt access a local cdrom?

1998-10-09 Thread Anthony Campbell

On Fri, Oct 09, 1998 at 11:38:27AM -0400, Jim Foltz wrote:
 On Fri, Oct 09, 1998 at 03:46:58PM +, Anthony Campbell wrote:
  I have succeeded in getting apt to connect to a distant ftp site but I've
  been unable to get it to access my cdrom drive, which currently has the
  Cheapbytes version of debian. I've tried every combination of deb 
  file:/cdrom
  I can think of but I keep getting malformed line in sources.list.  
  
  Is it possible to do this?  If so, how?
 
 First, mount the cd
 Then add the line:
 deb file:/cdrom/debian stable main
 (assuming you have the cd mounted under /cdrom and it is the stable/main cd)
 

No, I already tried this and it doesn't work. It gives unable to state
/cdrom/debian/dists/stable/main/binary-i386/Packages.gz

The problem seems to be that the file structure on my cdrom is
/debian/main/binary-i386/.  Stable is a link to /debian/main.  This doesn't
seem to be what  apt-get wants, and I don't seem to be able to tell it what
to do.




 
 Anyway, add the line to /etc/apt/sources.list, and comment out all others.
 Third, you can use dselect's apt method as usual, or use apt-get from the
 command line.
 
I'm not sure how to do this; I'll have to research it.



Anthony

-- 
Anthony Campbell  -  running Linux Debian 2.0
[EMAIL PROTECTED]  http://www.achc.demon.co.uk




Re: Can apt access a local cdrom?

1998-10-09 Thread John Forest
 Anthony Campbell wrote:
 
 
 No, I already tried this and it doesn't work. It gives unable to state
 /cdrom/debian/dists/stable/main/binary-i386/Packages.gz
 
 The problem seems to be that the file structure on my cdrom is
 /debian/main/binary-i386/.  Stable is a link to /debian/main.  This doesn't
 seem to be what  apt-get wants, and I don't seem to be able to tell it what
 to do.
 
A quick solution is to use the absolute path as in:
deb file:/cdrom/debian main/binary-i386/
deb file:/cdrom/debian contrib/binary-i386/
etc.
Note the trailing slash after the binary-i386.  This indicates an absolute
path.  Apt will look for: /cdrom/debian/main/binary-i386/Packages.gz etc.

See man sources.list(5).

John.


Re: Can apt access a local cdrom?

1998-10-09 Thread Dave Swegen
On Fri, Oct 09, 1998 at 11:38 -0400, Jim Foltz wrote:
 On Fri, Oct 09, 1998 at 03:46:58PM +, Anthony Campbell wrote:
  I have succeeded in getting apt to connect to a distant ftp site but I've
  been unable to get it to access my cdrom drive, which currently has the
  Cheapbytes version of debian. I've tried every combination of deb 
  file:/cdrom
  I can think of but I keep getting malformed line in sources.list.  
  
  Is it possible to do this?  If so, how?
 
 First, mount the cd
 Then add the line:
 deb file:/cdrom/debian stable main
 (assuming you have the cd mounted under /cdrom and it is the stable/main cd)
 

As a follow-up question to this: Is it possible to make apt aware of
multiple CDs? I bought one of the cheapbytes sets, and thus have 3 CDs
with different parts on them (main, contrib and non-free). Setting up the
main CD so apt is aware of it is no problem, but the other two? Seems daft
to have to use an ftp mirror when I have exactly the same stuff locally...

Cheers
Dave