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 at microlinux.fr T?l. : 04 66 63 10 32
On 3/6/2015 10:51 PM, Niki Kovacs wrote:> > 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?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/ -- john r pierce 37N 122W somewhere on the middle of the left coast
Dnia sobota, 7 marca 2015 12:16:14 AM John R Pierce pisze:> 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....And why not rsync? -- Over And Out MoonWolf
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! www.nux.ro ----- Original Message -----> From: "Niki Kovacs" <info at microlinux.fr> > To: "CentOS mailing list" <centos at centos.org> > Sent: Saturday, 7 March, 2015 06:51:41 > Subject: [CentOS] 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 at microlinux.fr > T?l. : 04 66 63 10 32 > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Александр Кириллов
2015-Mar-07 12:28 UTC
[CentOS] Something like apt-cacher for CentOS/RHEL?
> 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.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