Auto apt update; apt upgrade -y.
|
|
3 days ago | |
|---|---|---|
| .gitignore | 2 months ago | |
| README.md | 3 days ago | |
| aptgrade.go | 3 days ago | |
| go.mod | 2 months ago |
sudo apt update
sudo apt upgrade -y
Now all in one command, ready to be SUID.
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.