On 22/02/2021 20.14, Maximilian Trummer wrote:
Am Montag, 22. Februar 2021, 13:58:12 CET schrieb Maximilian Trummer:
I just noticed that my zypper cache in /var/cache/zypp/ is almost 45 GiB in size on one machine. Now I could clean this myself of course, but I wondered if there is no service that does this automatically.
regards I believe I found the culprit: https://forums.opensuse.org/showthread.php/530387-old-RPMs-in-var-cache-zypp...
So apparently when you start an update, don't finish it and then run it again later while a package in question has been updated in the meantime, the stale package doesn't get removed.
On Tumbleweed I often download packages in advance so the actual update process is faster afterwards. When a snapshot has known bugs or package conflicts, I sometimes skip the snapshot which would mean that at least some of the packages in the cache are stale by the time the next snapshot rolls around. This also explains why there are hardly any stale packages on my Tumbleweed servers - I don't download packages in advance there because they're on fast connections, and due to the smaller package count on my servers there are also less moving parts and thus reasons to skip a snapshot.
I can't help but think that zypper not removing stale packages from the cache automatically isn't very elegant though...
Zypper is not a daemon, it has no way to know that there are other packages from other runs still there, if the name has changed. Seems you have a feature request to do :-) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.2 (Legolas))