# apt-cacher-ng Default port 3142 ## Deb(ubuntu/debian) repos work out of the box server sided ### client `echo 'Acquire::http::Proxy "http://:";' > /etc/apt/apt.conf.d/01proxy` ## For Centos are modifications needed ### Server `curl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrors` SSL Passthrough #### /etc/apt-cacher-ng/acng.conf ``` VfilePatternEx: ^/\?release=[0-9]+&arch= VfilePatternEx: ^(/\?release=[0-9]+&arch=.*|.*/RPM-GPG-KEY-.*|/metalink\?repo=epel\$ VfilePatternEx = (^|.*/)repodata/.*\.(yaml|yml)(\.gz|\.bz2|\.lzma|\.xz)?$ Remap-centos: file:centos_mirrors /centos #PassThroughPattern: .* # this would allow CONNECT to everything ``` ### Client (installer) use http://mirror.centos.org/centos/8/BaseOS/x86_64/os/ as repo and set proxy to : ### Client (DNF) make sure to set repos to use base url add folowing to /etc/dnf/dnf.conf ``` proxy=http://: ```