[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    [opensuse] apt-cacher-ng, rpm and opensuse - caching of downloaded rpm's
From:       Scott Newton <scottn () ihug ! co ! nz>
Date:       2011-10-29 0:20:02
Message-ID: 201110291320.03598.scottn () ihug ! co ! nz
[Download RAW message or body]

I wanted someway of caching both debs and rpms but couldn't really find 
anything that was easy to use and setup. The user manual for apt-cacher-ng had 
a limited amount of info on using it with openSUSE but I initially couldn't 
get it to work. After some configuration tweaking I got it working and thought 
other people might be interested in using this as a solution. I'm also hoping 
other people with come forward with the solutions they have found that have 
worked for them (or improvements to what I've done).

In my particular case apt-cacher-ng is running on a Debian server but that 
shouldn't make any difference.

The changes I've made to the apt-cacher-ng configuration file acng.conf are as 
follows:
VfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|
Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|
Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|
Translation[^/]*\.bz2)|repomd.xml|xml.gz|content|media$
PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|
\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|
vmlinuz|initrd\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?)$

The openSUSE changes I've made are to the repo files in /etc/zypp/repos.d. 
I've added the line:
proxy=<ip of apt-cacher-server>:<port-of-apt-cacher-server-3142-by-default>
at the bottom of each of the repo definition files.

That was all that was needed.

The only real issue I have is apt-cacher-ng doesn't seem all that fast to 
updating is a fair bit slower than normal.

-- 
Regards
Scott Newton
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic