When you run
yay packagename
You are prompted 4 times:
There is some way to auto confirm all questions? (except the first one maybe). In yaourt there was a way to do it.
Because I have to install 25 AUR packages quite often and I don't want to respond 100 questions every time. Thank you.
I would highly recommend reading the man page with man yay, as all the answers to your questions can be found there.
yay packagename will do a search and give you a list of matching packages. To avoid the first prompt if you know the exact package name, use -S, like yay -S packagename.
To avoid the second and third prompts, you can set the config options to give defaults and never prompt. See the current config with yay -Yg (https://github.com/Jguer/yay/blob/master/doc/yay.8#L105)
You can set answers with yay --save --answerX: https://github.com/Jguer/yay/blob/master/doc/yay.8#L225-L246
for example: yay --save --answerclean All --answerdiff All
and set the menu display options similarly: https://github.com/Jguer/yay/blob/master/doc/yay.8#L265-L311
for example: yay --save --nocleanmenu --nodiffmenu
I'll leave the rest an an exercise to the reader. Remember, man is your friend!
That answer my question, thank you!
So close out the issue :P
Most helpful comment
I would highly recommend reading the man page with
man yay, as all the answers to your questions can be found there.yay packagenamewill do a search and give you a list of matching packages. To avoid the first prompt if you know the exact package name, use-S, likeyay -S packagename.To avoid the second and third prompts, you can set the config options to give defaults and never prompt. See the current config with
yay -Yg(https://github.com/Jguer/yay/blob/master/doc/yay.8#L105)You can set answers with
yay --save --answerX: https://github.com/Jguer/yay/blob/master/doc/yay.8#L225-L246for example:
yay --save --answerclean All --answerdiff Alland set the menu display options similarly: https://github.com/Jguer/yay/blob/master/doc/yay.8#L265-L311
for example:
yay --save --nocleanmenu --nodiffmenuI'll leave the rest an an exercise to the reader. Remember,
manis your friend!