Re: Squid proxy setup for caching RPMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 2, 2019 at 9:29 AM Tim via users <users@xxxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux