PDA

View Full Version : [ubuntu] Adding install CD to apt-cacher



pwaldo
June 23rd, 2008, 06:54 PM
Hi all,

I'm using apt-cacher to cache updates to all machines in my home. Now its time to upgrade to Hardy! Any ideas on how to get the .debs on the Alternate CD into apt-cacher? I tried

/usr/share/apt-cacher/apt-cacher-import.pl <CD_IMAGE_MOUNT_POINT>
but had no luck. apt-cacher-import.pl is not recursive.

Any thoughts on how to accomplish this? Thanks in advance!

ajgreeny
June 23rd, 2008, 08:35 PM
I know nothing about apt-cacher, but habe you tried mounting the iso on the CD somewhere and using apt-cacher on that folder. Foe example make a mount point folder in your home called ~/isomount and the mount the Alternate Install CD with

sudo mount -o loop -t iso9660 path/to/file.iso /home/username/isomountYou may then find that the application will work as you want.

I hope that is not a waste of time, and that what I suggest is helpful to you.

pwaldo
June 24th, 2008, 06:09 PM
I know nothing about apt-cacher, but habe you tried mounting the iso on the CD somewhere and using apt-cacher on that folder.

Thanks for the reply! That is exactly what I did, but apt-cacher-import.pl is not recursive. The .deb files live in (approximately) dist/pool/a, dist/pool/b, etc., so it did not see the debs :-(

ajgreeny
June 24th, 2008, 08:53 PM
Not even sure if it's possible, as I don't know if you can extract an iso that way, but have you tried extracting (copying) the deb files to another folder somewhere and then using apt-cacher?

liquidweaver
April 24th, 2009, 06:36 PM
Mount iso as loopback (makes a "virtual cd-rom drive", if you will)
use apt-cacher-import with recursive and readonly flags
unmount when done


Details:
sudo mount -o loop ubuntu-9.04-alternate-i386.iso /media/cdrom
sudo /usr/share/apt-cacher/apt-cacher-import.pl -R -r /media/cdrom/pool
sudo umount /media/cdrom