Am Freitag, 19. Februar 2021, 22:34:43 CET schrieb Michael Hamilton:
On Saturday 20 February 2021, Hans-Peter Jansen wrote:
Am Freitag, 19. Februar 2021, 19:28:16 CET schrieb Jan Engelhardt:
On Friday 2021-02-19 18:40, 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?
rm -rf /var/log/zy* zypper dup --debug-solver tar -cf pack.tar /var/log/zy*
save that - preferably put to bugzilla - before you do anything else.
As Michael noted, I keep the caches on purpose, and share /var/cache/zypp/ packages with other machines, but those numbers are a bit different as well:
~> du -sh /var/cache/zypp/packages/ 199G /var/cache/zypp/packages/
Reveals the question, if libzypp takes available, but unrelated packages into account?
Anyway: boo#1182513
Cheers, Pete
Wow, you must be keeping a lot of packages. I did a purge this morning and my zypp cache dropped from 10G to 4.5G. I basically do an rpm -q -a and then remove cache files not in that list. I've put a gist on github:
https://gist.github.com/digitaltrails/cfd6617be9f0e5cfbdaaf951d4526aef
The downside of purging off old rpm's is that I can no longer revert to older versions via the cache. For me that's not a problem, I only want an up to date cache for seeding another desktop.
Thanks for sharing the script, Michael. Yes, I do this on purpose, updating about a dozen TW systems from it, and been lucky enough to have some storage headroom available. Cheers, Pete