Skip to content

Difference between yay --cleanafter and yaycache -r --remove-build-files #7

Answered by aokellermann
KAGEYAM4 asked this question in Q&A
Discussion options

You must be logged in to vote

No worries. I just now enabled discussions for this repo so future questions can go here instead: https://github.com/aokellermann/yaycache/discussions

AUR packages are just git repos that usually just contain a PKGBUILD and maybe a couple other files. All other files such as the source code's repo and pkg.tar.zst are "untracked" in git terms.

--remove-build-files: Removes all untracked files except pkg.tar.zst files. It also takes into account arguments like min-mtime/min-atime and --ignore.

--cleanafter: According to https://linuxcommandlibrary.com/man/yay it removes all untracked files except directories (no idea why).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KAGEYAM4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on February 21, 2024 14:49.