Ubuntu – Bypass the yes/no prompt in ‘apt-get upgrade’

aliasaptcommand line

In order avoid typing out all of the apt-get commands when updating my computer I have made a simple alias command to do it. But I really want to be able to just type in my alias and let it do its thing and not have to wait to for the yes/no prompt to type in "y". Is there a simple way to bypass this prompt or maybe add "yes" in the alias somewhere?

Best Answer

Sure, although I have never tried it as an alias but it should work:

sudo apt-get update && sudo apt-get -y upgrade