Arch yay clean answer yay --save --answerdiff None --answerclean None --removemake The --save option creates a file at ~/.config/yay/config.json with these settings set for future runs of yay.