2

I'd like apt-get to default to using the -y option without me having to explicitly provide it. Is this possible?

1 Answers1

4

One option is to alias it.

You can add this to your .bashrc file:

alias apt-get="apt-get -y"

Another option is to add below config to a file at /etc/apt/apt.conf.d/ for ex, a file called 90never-ask at /etc/apt/apt.conf.d/

APT::Get::Assume-Yes "true";