On 05/20/2015 09:21 PM, arvindg@emailuser.net wrote:
What I'd LIKE to do instead is set up some sort of caching on the LAN so that when any machine downloads any new or upgraded package, the rpms are FIRST cached to a lan machine that then makes those packages available to other machines as they need it.
Since all the machines are pretty similar, and there's always at least a couple of machines that need the same package, this would
(1) make sure that I'm not re-downloading the same package over and over (2) prevent rsync/storing packages that are never used at all
The question is -- can I do this with zypper, or some other tool?
I'm sure this has come up, so there's be something in the archives you can google for. Here's some context to help. What you want is a "caching proxy". Rather than have each machine point to the opensuse repositories, point all machines except the proxy to the proxy when adding repositories. https://en.opensuse.org/SDB:Creating_YaST_installation_sources Or perhaps better illustrated: http://eureka.ykyuen.info/2010/01/06/opensuse-create-your-own-software-repos... http://linux.die.net/man/8/createrepo That's a start. You'll have to do a bit of background reading if you're not familiar with the types of metadata needed, how to set up Apache, and a few other things. You seem to be aware that simply downloading ALL of a remote repository is over-doing it, there are going to be packages that never get requested by any of the machines. That's why a proxy. Zypper can be told not delete the rpms when it has installed them. It can also be told to 'just' download and where to download to. back to RTFM for that :-) <quote> -d, --download-only Only download the packages for later installation. </quote> <quote> -k, --keep-packages Enable RPM files caching for the repository. </quote> <quote> /var/cache/zypp/packages If keeppackages property is set for a repository (see the modifyrepo command), all the RPM file downloaded during installation will be kept here. See also the clean command for cleaning these cache directories. </quote> You may want to link or symlink that to the right place for access ... see above link The trick, therefore is to have the proxy ALWAYS run a parametrized zypper to make sure the latest is in the right places in the cache, then let the caller access that. All that being said, you might want to try this first, usign real locations not mirrorbrain. http://sysops.pblogs.gr/2012/06/rpm-caching-proxy-for-yum-zypper-kiwi-simila... -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org