Friday, 13 September 2013

Apt-Cache Server and Ubuntu

I have to admit, that I don't know how I lasted this long without an apt-cache server. Everytime I would update the systems I have on one of the locations I would download updates on each of the machines, because I was too impatient to wait for one of them to finish to go to the next one I ran them all simultaneously and of course that made it even worse ;) So now I finally set up the apt-cache server. Setting it up according to the Ubuntu help web page worked quite well, with one minor exception - Import of existing packages with the following command:
sudo /usr/share/apt-cacher/ -l /var/cache/apt/archives
That created the links in the apt-cacher directory, but afterwards would issue errors in the logs when trying to change the files there and the clients access was denied and they downloaded the files anew from the net.
So just skip that one (I did not try to import the whole CD/DVD image, don't know what that one does, but it might work better since it would copy files and not link them on disk).

So now, first time apt-get update or upgrade command fetches/refreshes the cache, the next machine that does the query gets files cached and downloads everything from the LAN with full speed ;)

For instructions just follow the above link, and you should be fine.

So happy apt-ing ;)

No comments: