PDA

View Full Version : Using apt-get & apt-cdrom with Debian ISO images



HomerCube
09-29-2004, 03:09 PM
Scenario:
Knoppix HD-installed PC at home, other at work
broadband at work only
Weekly Debian sarge ISO updates by jigdo-lite
tired of re-mastering them each time on CD-RWs, bought an USB 2.0 external HDD, works fine


Result:
copy ISO onto home PC hard disk
mount them as /mnt/1, /mnt/2, and so on (defined mount points in /etc/fstab)
"acquire" them with apt-cdrom -d /mnt/xy
update apt repository with apt-get -u update


This way, when I want to install or upgrade a package, I can obtain it directly from ISOs. The only issue is, when I use apt-get -u install whatthehell, it keeps on asking from CD-ROM, so I have to manually mount corresponding ISO as /cdrom. Faster than using CDs, but still a bit annoying.
Anybody got an idea to tell apt-get to use pre-defined "/etc/fstab"'s /mnt/xy instead?

TnX.