On 10/05/14 07:36, A Debian User wrote:
> 
> On Friday, 09 May, 2014 03:39 PM, Scott Ferguson wrote:
>> Most of what you will want to install (statistically speaking) is on
>> the first [Debian] DVD. Everything you need to later install from the
>> other DVDs is on the first DVD. You can always install packages from
>> the other DVDs just using the iso files - so you may never need to
>> use, or burn (if you do use) the other DVD iso files. Kind regards 
> How exactly do you do that?
> 
> That is, do you mount those ISOs as DVDs and then point sources.list to
> them?

Sort of (there are several ways).

You can use apt-cdrom to add the iso image when mounted to the package
database, but it's best to only do that if the mountpoints are included
in fstab (though it will still work if they're not).
e.g.:-
make a mount point for the .iso file
# mkdir v_CD

add the mount point to fstab
# echo "path/to/some.iso path/to/v_CD udf,iso9660 user,noauto 0 0" >>
/etc/fstab

mount the iso file
# mount -a

identify the iso (ident), but don't add to sources.list (-n), don't
mount or umount (-m)
# apt-cdrom -d v_CD -mn ident
Using CD-ROM mount point v_CD/
Mounting CD-ROM
Identifying.. [b66a298577d105ca42919b670ef80a58-2]
Stored label:

add the iso to the apt-cdrom database
# apt-cdrom -d v_CD add

You can also use apt-offline. It has a nice man page. ;)


> 
> Also, how do you make sure that apt checks that the packages on the DVDs
> are current, and retrieves the packages from the online mirrors,
> instead, if the aren't.

I don't. Apt/dpkg magic does that for me. Nothing special there. If you
installed from DVD/CDs to begin with they'll be in sources.list (added
by apt-cdrom). In which case when you normally upgrade/dist-upgrade or
just install a package - apt/dpkg will use the most recent version of
the package, based on your preferences. If the most recent package
version is the same as the one on your original installation DVD you'll
be asked to insert that disk - saving you downloads and time.

> 
> I want to be able to safely use both the online mirrors and the DVDs in
> the same sources.list file without having to worry that I may be
> installing outdated software (I have a slow Internet connection, so
> getting the big packages from the DVDs might help).
> 
> Thanks :)
> 

I use apt-cacher-ng on a network server to achieve the same ends. Any
boxes on the LAN read their /etc/apt/apt.conf.d/90proxy file and proxy
apt requests through apt-cacher-ng:3142. If the file is cached it's
served from cache - otherwise it's downloaded to cache then served to
the requesting box. apt-cacher-ng will import package databases from CD
and DVDs (it also caches multiple repositories).


-- 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/536d8eb3.8090...@gmail.com

Reply via email to