One command to update ubuntu software
Tired of going through multiple commands and prompts every time you update your ubuntu system? Well, this is the guide for you! You may automatically make changes to your system that you don’t want, but I always answer yes to everything anyway when doing it manually, and I’ve never had any problems with it.
In a terminal, run ‘sudo vim update’ in the /usr/local/bin folder and add the following information (you can use another text editor than vim if you prefer). To save with vim you need to type :wq and press enter.
#!/bin/bash echo echo Software Update echo sudo apt update echo echo Software Upgrade echo sudo apt upgrade -y echo echo Unused Package File Processing echo sudo apt autoremove -y echo echo Maintenance Complete. Thankyou for your patience. echo echo
Then, run ‘sudo chmod +x update’ to make the command executable. You can now run ‘update’ from any directory in the terminal and you will update your system automatically. You may still need to enter your password if prompted. If you wanted to have the password automatically entered too, you’d have to make an expect script rather than a bash script, and put your password as a response to the expected line asking for your password.