Something Like Apt-cacher For CentOS/RHEL?
Hi,
For some time I’ve fiddled with Debian and Ubuntu LTS. There’s one really nice feature for local networks: apt-cacher, a package proxy for APT.
My company is in the remote South French countryside, and more often than not, schools and public libraries only have some very limited Internet access with relatively low bandwidth, which can make the updating process very tedious. A package cache comes in very handy in such situation.
Do you know if something like this exists for RPM-based distributions?
Cheers,
Niki
—
Microlinux – Solutions informatiques 100% Linux et logiciels libres
7, place de l’église – 30730 Montpezat Web : http://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32
6 thoughts on - Something Like Apt-cacher For CentOS/RHEL?
I maintain a local mirror of the CentOS repository with a simple lftp script, and configure my clients to get updates from this mirror via the
/etc/yum.repos.d files….
my update_morror.sh script that gets run daily from a crontab
#!/bin/sh
/usr/local/bin/lftp -c ‘open ftp://mirrors.sonic.net && lcd
/mnt/zbig/mirror && mirror –continue –verbose=1 -x ia64 -x s390 -x
s390x -x alpha -x SRPMS CentOS’
If you use this, replace ftp://mirrors.sonic.net with a mirror well connected to your ISP, chosen from http://www.CentOS.org/download/mirrors/
Dnia sobota, 7 marca 2015 12:16:14 AM John R Pierce pisze:
And why not rsync?
2015-03-07 11:10 GMT+02:00 Marcin Trendota:
And why not reposync or mrepo ?
Hello,
It looks like apt-cacher-ng can deal with RPMs, says a quick search: http://blog.hudecof.net/posts/2014/08/15/apt-cacher-ng-and-remap.html
If that doesn’t work you could try more traditional ways of caching content like squid or Apache mod_proxy/cache. http://serverascode.com/2014/03/29/squid-cache-yum.html
HTH
Lucian
—
Sent from the Delta quadrant using Borg technology!
Nux!
http://www.nux.ro
—– Original Message —–
rsync fairly frequently errored out on me.
this lftp script has run without a glitch.
You can also enable keepcache in /etc/yum.conf on one of the servers and after update copy rpms from /var/cache/yum to a (higher priority) local repository. You’ll need to use createrepo to generate metadata for the repo.
HTH