Configure apt-cacher-ng to cache yum packages
Update /etc/apt-cacher-ng/acng.conf add the lines
- /etc/apt-cacher-ng/acng.conf
VfilePatternEx: ^(/\?release=[0-9]+&arch=.*|.*/RPM-GPG-KEY-.*)$ Remap-centos: file:centos_mirrors /centos
Create a mirrors file
- /etc/apt-cacher-ng/centos_mirrors
curl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrorscurl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrors
Update yum to use apt-cacher-ng
- /etc/yum/yum.conf
proxy=http://hitchcock.ald-weishoes.lan:3142
Backlinks: