Thursday, May 2, 2024
149
rated 0 times [  149] [ 0]  / answers: 1 / hits: 171191  / 3 Years ago, tue, july 6, 2021, 11:47:36

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?


More From » command-line

 Answers
1

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



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

[#39536] Wednesday, July 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brellked

Total Points: 63
Total Questions: 107
Total Answers: 104

Location: Morocco
Member since Fri, May 22, 2020
4 Years ago
;