Auto apt update; apt upgrade -y.
|
|
3 days ago | |
|---|---|---|
| .gitignore | 2 weeks ago | |
| README.md | 2 weeks ago | |
| aptgrade.go | 3 days ago | |
| go.mod | 2 weeks ago | |
| install.sh | 4 days ago |
sudo apt update
sudo apt upgrade -y
Now all in one command, ready to be SUID.
First, update install.sh, unless your username just happens to also be thor.
go build
sudo ./install.sh
OK! You now have an aptgrade binary that runs as root.
It calls the above commands.