Two possible approaches for caching/mirroring repositories locally for RedHat/Centos and Debian/Ubuntu
Artifactory or other commercial tool would be the go to choice. Unfortunately the oss version of Artifactory doesn't support rpm or deb without a license. For this project only looking at solutions that are open source or homegrown.
The need is to support 1 or 2 versions (latest and 1 back) of RedHat,Centos,Debian,Ubuntu and prefer to have one host dedicated for this service (both caching and local distribution)
For this effort 2 approaches were considered- cobbling scripts together and built in utilities, and secondly an open source solution repomanager: https://github.com/lbr38/repomanager