Hacker News new | past | comments | ask | show | jobs | submit login

Talking about automating apt-get, yum and the like, is there a way to cache frequently downloaded packages on developer machine in the same local network?

For instance, I have a bunch of disposable VMs, and I don't want them to download the same gigabytes every time I run init-deploy-test.




apt-mirror creates a full repository, and there's a tool called deb-squid-proxy or some combo of those words that lazily caches packages.


Oh thank you, not even sure how I missed it.


The server piece is "squid-deb-proxy" and for the clients it's "squid-deb-proxy-client".


You might want to give a try to apt-cacher-ng.

apt-get install apt-cacher-ng


I use this - and it's great with my slow internet connection. It's totally transparent, and I only notice it if my vm running it is down.

And despite the name, newer versions work with yum too (although I found I had to disable the fastest mirror yum plugin to get reliable caching).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: