-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clearing cache? #772
Comments
--cleanafter and -Sc are both ways to do it. For smarter clearing use paccache itself. For automation either write your own alpm hook (while will probably be annoying because it will trigger after every install, aur packages are installed one by one after all) or write a timer unit. |
But use |
Is there a way to keep 3 latest versions? |
These two pacman hooks I made work for anyone still interested in this. Keeps last 2 installed versions of upgraded packages and removes folders of uninstalled packages. Adopt for your own user and script location. |
Im not sure if i should comment here or not, but given how little i understand about package managers, i would also like a safe and builtin way to remove cache automatically, hopefully allowing me to keep the last 2-3 versions, what's the recommended way to achieve this result? According to luukvball script, paccache removes yay cache aswell (at least it seem so to me), so wouldn't typing |
I don't like those particular hooks. But a hook that uses paccache to remove |
Personally I had some problem too with maintaining yay cache due to low disk space on ssd.
I felt the same, especially in multi user desktop setup. For me luukvbaal's hooks (modified) works, but idiomatically it would be wonderful if there was something like Maybe post-transaction AUR pkg hook in yay will be enough for this? Then pacman itself wouldn't touch /home due to running |
I'm not sure how i missed this in the past, but there's a closed issue about using 'yay -Sc' to clear all cache, both pacman and yay, asking which one we would like to delete separately. |
|
I've just run an update, cache folder was 3 Gb, running
|
I experienced the same today. Yay -Sc does not do anything. Still 37GB .cache/yay. |
I'm having the same problem. The issue seems to be, that the dialogues cannot handle non-english keyboard input. In my case (german) it asks [J/N] instead of [Y/N], however pressing J, Y or Z (since Y and Z are swapped in german layout) is interpreted as "no". A workaround is just pressing Return on the last prompt. |
Why is this issue closed? |
|
how do i rebuilt cache? A bunch of apps no longer load now. |
Packages don't depend on yay cache. So I don't know what you're experiencing. It's likely unrelated. |
I built https://github.com/aokellermann/yaycache as a tool that supports paccache features to manage yay's cache. There is also a hook available. |
i've hit this with a random ansible task, i have a specific aur user that can run pacman as passwordless sudo but when |
Is there a way to add a hook to yay in a way similar to how pacman uses paccache?
I like yay because it keeps a cache, but there doesn't seem to be an automated method of clearing out the cache unless I missed something?
Ideally, I'd like yay to check the cache if there are more than 3 older versions of each package, then delete the rest.
The text was updated successfully, but these errors were encountered: