On Mon, Sep 2, 2019 at 9:29 AM Tim via users <users@lists.fedoraproject.org> wrote:
> On Mon, 2019-09-02 at 08:53 -0500, Richard Shaw wrote: > > Since I have >7 Fedora installations I setup a squid proxy server > > specifically for the purpose of reducing my download data since many > > of the same packages are going to get downloaded over and over again. > > > > I seem to be getting some hits (still looking for a GOOD squid > > analyzer!) but not as much as I would expect. I'm no regex expert but > > I tried to update the regex to pick up delta RPMS as well and may > > have made a mistake... > > To use a caching proxy to help with yum/dnf/packagekit, you need to > ensure that those updaters always use the same repo mirror. So you > need to configure your updater, first. > I found some methods that use url rewriting but it's rather ugly... One[1] suggested this: \/fedora\/linux\/releases\/([0-9]+)\/Everything/x86_64\/(.*)$ http://repo.mirrors.squid.internal/fedora/releases/$1/$2 \/fedora\/linux\/updates\/([0-9]+)\/x86_64\/(.*)$ http://repo.mirrors.squid.internal/fedora/updates/$1/$2 There's got to be a proper and generic way of doing this. Keeping up with a list of mirrors isn't sustainable. I'd be willing to create a new project to try and come up with a package that would automagically get this working but I'd need a lot of help... Thanks, Richard [1] https://serverfault.com/questions/837291/squid-and-caching-of-dnf-yum-downloads
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org