Best Practice for DNF behind a caching proxy

I’ve installed a proxy server, and directed all my RL machines to use that for packages. The idea being that then I don’t have to worry about maintaining my own mirror.

It seems like things are less than optimal, however, as the repo configurations all use mirrorlist. I end up hitting different mirrors, thus making the experience worse for everyone.

What’s the best way of ensuring that all RL repos are trying to fetch from, say,, and then I just cache that?

I went with the following strategy:

  • For all Rocky* repos in /etc/yum.repos.d/ I commented out mirrorlist, and commented in basedir= ...
  • For all other repos (Dell OMSA, EPEL) I let things be.
  • Proxy for DNF across the board.
1 Like