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
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/
2015-03-07 11:10 GMT+02:00 Marcin Trendota moonwolf.rh@gmail.com:
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?
And why not reposync or mrepo ? -- Eero
On 3/7/2015 1:10 AM, Marcin Trendota wrote:
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?
rsync fairly frequently errored out on me.
this lftp script has run without a glitch.
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@microlinux.fr To: "CentOS mailing list" centos@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@microlinux.fr Tél. : 04 66 63 10 32 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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