
On Sunday, 21 February 2021 7:37:33 ACDT Michael Hamilton wrote:
On Sunday 21 February 2021, Rodney Baker wrote:
On Saturday, 20 February 2021 6:23:47 ACDT Michael Hamilton wrote:
On Saturday 20 February 2021, Hans-Peter Jansen wrote:
Hi,
4990 packages to upgrade, 3 to downgrade, 26 new, 1 to reinstall, 9 to remove. Overall download size: 3.94 GiB. Already cached: 7.18 GiB. Download only.
Fun, but why does the cached size outdo the overall size?
Cheers, Pete
The rpm's in the cache are not kept by default. If it they are kept, zypper does not purge any, so many versions of each rpm may pile up. This can be useful if you need to revert to an earlier version of an rpm or wish to seed the cache of other machines.
I use the cache from one machine to seed the nearly identical machine, but rather than copying over old disused rpm's I may run a home made script to do a purge first. I can post the script if anyone's interested.
Cheers, Michael
Have you tried apt-cacher-ng for that? It works not only for apt on debian, but also for zypper. I'm using it in a mixed environment of Debian/Raspbian and oS machines (real and virtual) and it a) means that the machines in question don't need direct internet access - only the VM running apt-cagher-ng does; and b) it saves a heap on internet bandwidth and dramatically speeds up updates for all but the first machine requesting a particular set of updates.
Very simple to setup, too. Debian (and Debian-derivative) clients using apt are extremely easy to setup - zypper needs a little more work, with manual editing of the repo URL's for each repo that needs caching, but that only needs to be done once, when a repo is added (or it is deployed for the first time).
Hopefully someone might find this useful.
I can see that being useful if you have a large number of machines with different software installed. I had in the past wondered about using squid to do some mirroring of repos, but the need hasn't eventuated.
In my case I have two desktops and they're deliberately kept quite similar. I don't need to mirror everthing in the repos, just the 3-4GB required for those two machines.
Cheers, Michael
-- ============================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au CCNA #CSCO12880208 ==============================================================