# AptGrade ``` sudo apt update sudo apt upgrade -y ``` Now all in one command, ready to be SUID. ## Installing `go build` `sudo install -g 0 -o 0 -m 4755 aptgrade ~/bin/aptgrade` Running the program before it is installed/setuid, it will suggest `sudo install -g 0 -o 0 -m 4755 aptgrade ~/bin/aptgrade` This installs the program into the user's home bin directory. This may or may not work for you. You might want /usr/bin/aptgrade. In this version, it will call `apt-get autoremove -y` if it sees "Use 'apt autoremove' to remove it." in the output.