Auto apt update; apt upgrade -y.
|
|
hace 5 horas | |
|---|---|---|
| .gitignore | hace 2 meses | |
| README.md | hace 4 días | |
| aptgrade.go | hace 5 horas | |
| go.mod | hace 2 meses |
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.