How to Create Yum Cache Server for client machines in LAN

There are several methods to achieve this.

The simplest option would be to create a caching proxy server such as squid, which clients could be configured to use to connect via. Once a client downloads one package, the rest of the clients would collect the package from the squid cache, rather than downloading direct from the repository.

The YUM website lists several options (including mounting /var/cache/yum over shared storage, e.g. NFS, or using rsync to copy cached packages to other machines) where a cache is created by synchronising package files from a remote mirror, most of which would require substantial configuration and disk space to maintain.


install and configure mrepo by Dag Wieers. Works like a charm. It is not like apt-cache of apt-cache-ng, but no such thing exists in yum land that I know of.