Ask Your Question
1

Equivalent of apt-cacher for rpm/yum

asked 2014-06-24 08:39:38 -0500

rineau gravatar image

Does the yum/rpm ecosystem have an equivalent of the apt-cacher software? apt-cacher is a caching HTTP proxy for apt.

The use case is: you have a collection of Fedora machine (or virtual machines) where you always install similar sets of packages. Mirroring whole repositories to too costly, but a caching HTTP proxy can help. Who can we implement that for Fedora, and using Fedora?

edit retag flag offensive close merge delete

Comments

There Pulp, But I never tried it - http://www.pulpproject.org/

Rabin gravatar imageRabin ( 2014-06-24 10:02:19 -0500 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2014-06-24 15:27:24 -0500

tonioc gravatar image

several ideas : 1) Yum may cache the updated packages on a 'master' machine in /var/cache (eg. /var/cache/yum/x86_64/20/updates/packages/ ) if /etc/yum.conf has keepcache=1 This may be used with a share mounted on /var/cache/yum/x86_64/20/updates/packages

2) alternatively you may create a local repository using yum-plugin-local and share this repo.

3) yum-downloadonly + yum localinstall may also be used and shared.

edit flag offensive delete link more
1

answered 2018-02-24 11:54:04 -0500

hedayat gravatar image

updated 2018-02-26 13:44:52 -0500

There is also apt-cacher-ng in the repos, which seems to be able to work for yum repositories: http://blog.hudecof.net/posts/2014/08...

Update: I've tried it, and it works fine. All I needed to do was to enable HTTPS PassThrough in the config file.

edit flag offensive delete link more
0

answered 2018-02-28 14:30:07 -0500

Aeyoun gravatar image

It really just comes down to your needs

You already knew the right answer. A standard HTTP proxy will do this for you; and you’ll find both Varnish and Squid in the Fedora repositories.

Edit /etc/dnf/dnf.conf and point the proxy option to your proxy server (e.g. proxy=203.0.113.8) and optionally proxy_username and proxy_password in the global section.

You should also modify /etc/yum.repo.d/*.conf to use a baseurl for a specific repository instead of a metalink to make sure all your clients use the same repository and ensure high cache hit rates. (You could of course just setup your own mirror and point the baseurl to that.)

You can also just use a transparent caching proxy server in front of your machines, but cache hit rates will be lower.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-24 08:39:38 -0500

Seen: 2,302 times

Last updated: Feb 28 '18