Auto apt update; apt upgrade -y.

Steve Thielemann 57fa847a62 Removed dead/old code. 3 days ago
.gitignore fd2286ecba AptGrade 2 months ago
README.md c3fb433c92 Updated, better scanning of output. 3 days ago
aptgrade.go 57fa847a62 Removed dead/old code. 3 days ago
go.mod fd2286ecba AptGrade 2 months ago

README.md

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.