This question already has an answer here:

I am looking at setting up several Centos machines in my network and would like to have them update from a centralised server on the network. I am hoping to save bandwidth by not having to update each OS from the internet.

The solutions I have found require me to mirror the entire centos repository, which I find to be a terrible waste of storage considering that I would only ever be using a fraction of the packages available.

The solution I am looking for would allow all machines to point to a local yum server for packages and if the latter doesn't have the requested package, get it from the www and cache it for the next request.

marked as duplicate by dawud, Matthew Ife, Ward, Cristian Ciupitu, mdpc Jul 2 '14 at 15:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Take a look at http-replicator or mrepo.

Not the answer you're looking for? Browse other questions tagged or ask your own question.