You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mlu...@googlegroups.com
Just thought I'd share this fun fact: if you use apt-cacher-ng to
cache your debian/ubuntu updates you can also use it for centos (and
presumably fedora)
Here's a one-liner I pieced together for my dev VMs:
# Configure a new CentOS VM to pull yum updates from Internode, via
the apt-cacher-ng proxy
## NOT FOR PRODUCTION - this mangles important system files and has
the potential to really f2k things up
cd /etc/yum.repos.d/ && sudo sed -i.bak -e 's/^mirrorlist *=
*/#mirrorlist = /' -e
's/#*baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/mirror.internode.on.net\/pub/'
*.repo && sudo sed -i 's/enabled=1/enabled=0/'
/etc/yum/pluginconf.d/fastestmirror.conf && sudo sed -i 's/proxy
*=.*/proxy=http:\/\/10.0.3.184:3142/' /etc/yum.conf; grep proxy
/etc/yum.conf || echo 'proxy=http://10.0.3.184:3142' | sudo tee -a
/etc/yum.conf
No changes required on the server side, the default apt-cacher-ng
config works fine. I pieced this together from these two links:
This AUR package has been pre-configured to allow caching to the following client distros:-
Arch Linux
Cygwin
Debian
Debian Volatile
Fedora
Fedora EPEL
Gentoo
Scientific Linux
Sourceforge
Ubuntu
Just be sure to put your favourite distro mirror at the top of the relevant configuration lists.
While I haven't tried this latest version of apt-cacher-ng in arch, I can confirm that an older version of it with some hand-crafted config files work flawlessly on a pentium 2 or a raspberry pi running arch linux.
Cam.
Timothy Rice
unread,
Oct 28, 2014, 4:42:44 PM10/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mlu...@googlegroups.com
For what it's worth, every now and then yum seems to throw some new
file type in that doesn't match the appropriate patterns in ACNG, you
can usually just coax the RegEx in the config in to doing what you
want again though, e.g
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1006844
TLDR - if something breaks, 99% of the time you can fiddle with
VFilePattern to get it working again, regardless of what ACNG
"supports".