0

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

4
  • what frontend are you referring to? – Fox Dec 23 '20 at 6:27
  • @Fox Umm the shell frontend – d4rk4ng31 Dec 23 '20 at 6:31
  • 1
    ... instead of echo y, consider yes – Panki Dec 23 '20 at 7:55
  • How do I make the frontend What "frontend"? "Frontend" to what end? – KamilCuk Dec 27 '20 at 14:27
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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