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?
Ubuntu – Bypass the yes/no prompt in ‘apt-get upgrade’
aliasaptcommand line
Related Question
- Ubuntu – Writing an alias that puts a folder and its subfolders/files into an encrypted archive titled with the date
- Ubuntu – Date command not resolving properly in bash alias
- Ubuntu – Unable to add any repository via add-apt
- Ubuntu – apt-get cannot connect to Ubuntu archives
- Ubuntu – Escape timeout for, or cancel sudo fingerprint authentication and revert to password
Best Answer
Sure, although I have never tried it as an alias but it should work: