aura icon indicating copy to clipboard operation
aura copied to clipboard

Enhancement: Support paccache's -u switch

Open Chalice opened this issue 1 year ago • 3 comments

Greetings!

Aura's "-Cc X" switch combination allows it to currently mimic paccache -rk X, where X is the amount of last versions of packages to be kept in the package cache.

It would be neat if aura would also gain compatibility with paccache's -u option, where only non-installed package archives are checked and removed. (i.e. paccache -ruk 0 removes all archives of currently not installed packages).

Example:

aura -Cuc 0 = remove all versions of currently not installed packages from the cache.

Chalice avatar Aug 22 '24 07:08 Chalice

Hi, can you check the -n suboption for -Cc and see if that would suffice?

fosskers avatar Aug 22 '24 10:08 fosskers

Heya!

-Cn is not a good replacement, because without manually creating a package record, it just purges your entire cache. I just tested it. :p

Chalice avatar Aug 22 '24 13:08 Chalice

Sorry, I had assumed you'd have an auto-saved package state so that that wouldn't happen.

Note also that these options exist: https://fosskers.github.io/aura/pacman.html#removing-the-tarballs-of-uninstalled-packages

fosskers avatar Aug 22 '24 20:08 fosskers

Hi there, any thoughts on those other options I linked?

fosskers avatar Sep 08 '24 04:09 fosskers

Greetings! Sorry, I saw the links late. -Sc has the problem that it only keeps the archives of the currently installed versions - it does not allow you to keep, say, the last 2 versions instead, which is what aura -Cc 2 does. But -Cc also keeps the archives of non-installed packages, and we're back to square one :)

Chalice avatar Sep 08 '24 07:09 Chalice

Thanks I'll consider this.

fosskers avatar Sep 08 '24 10:09 fosskers