[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can apt access a local cdrom?



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.


Reply to: