I am looking for the equivalent of RHEL's yum -y in ArchLinux's pacman so that I can install packages with a shell script without asking the user questions.


The option you are looking for is --noconfirm . It is available in pacman's 8 man page and is also available here

however, it is best to avoid using it and is highly recommended to always read and understand pacman's output.

Not the answer you're looking for? Browse other questions tagged or ask your own question.