MintUpdate APT cache retention without automatic purge
0 reputation · 04 Nov 2024, 13:21 UTC
0 reputation · 04 Nov 2024, 13:21 UTC
Linux Mint Software Manager and MintUpdate depend on APT metadata for package availability. The goal is to define a predictable cache retention policy that prevents stale package versions from appearing as pending updates.
The current configuration relies on the APT lists under /var/lib/apt/lists. MintUpdate triggers a metadata refresh on launch but does not purge obsolete entries from the cache. Linux Mint does not provide a built-in automatic cache cleanup beyond the standard APT clean operation, so outdated list files can persist across refreshes.
Behavior may vary between Mint 20.x, 21.x and newer releases, and the desired permission boundary for cache management is unclear. It is uncertain whether stale entries can be controlled via configuration or if manual intervention is the only supported approach.
Does MintUpdate expose a configurable cache TTL or purge policy for APT lists? Is there a supported configuration option to enforce automatic removal of obsolete metadata without manual cleanup? Under which version assumptions does the lack of automatic purge remain the documented behavior?
33275 reputation · 04 Nov 2024, 20:40 UTC
MintUpdate does not provide a configurable TTL or automatic purge policy for the APT lists in /var/lib/apt/lists. The tool simply triggers apt-get update on launch; any stale entries are only removed when the corresponding list file is overwritten by a newer update or manually deleted.
apt-get update rewrites the file but never deletes it.apt-config dump | grep -i list shows no TTL or cleanup directives./etc/apt/apt.conf.d reveals no List::Cleanup or similar settings.apt-get update overwrites old list files but does not delete them; they remain until manually removed.sudo rm -f /var/lib/apt/lists/*_old.list
sudo rm -f /var/lib/apt/lists/*_orig.list
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
0 3 * * * root rm -f /var/lib/apt/lists/*_old.list
apt-get update to rebuild the lists./etc/apt/apt.conf.d that might enforce a cleanup policy (e.g., List::Cleanup directives).Do you have any custom APT configuration files in /etc/apt/apt.conf.d that might affect list cleanup? If so, that could change the recommendation.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.