In Debian, we have a variable called DEBIAN_FRONTEND
, which when set to noninteractive
stops prompting and is useful in scripts. Do we have an equivalent in archlinux? Because, 'echo y | ' is really annoying when the script has 20 different lines
Do we have an equivalent in archlinux?
No, you need to pass --noconfirm
option to pacman
.
is really annoying when the script has 20 different lines
In scripts I like to "mask" the command with function:
pacman() {
command pacman --noconfirm "$@"
}
pacman -S something
# really runs pacman --noconfirm -S something
echo y
, consideryes
– Panki Dec 23 '20 at 7:55How do I make the frontend
What "frontend"? "Frontend" to what end? – KamilCuk Dec 27 '20 at 14:27