Clearing Uninstalled Packages from Cache #12
-
Hello. Just started using this tool and it's very helpful. I was wondering if there is an option to remove all AUR packages not currently installed on my system. This would be what the question For example, I download an AUR package. Then I remove it. However, the directory for the AUR package still exists in the cache. Is there an option to remove these directories? If not, I think this would need to be implemented a bit differently than paccache, as the yay cache stores each package inside its own directory (and I don't think paccache has the logic for handling that). The biggest reason I’d want this is to use it within a libalpm hook. Another possible solution is also running yay -Sca in a hook and only saying yes to the first question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes $ yaycache --help | grep uninstalled
-u, --uninstalled target uninstalled packages |
Beta Was this translation helpful? Give feedback.
Yes
$ yaycache --help | grep uninstalled -u, --uninstalled target uninstalled packages