Code: Select all
0 7 * * 1 apt-get update && sudo apt-get upgrade -yAnd one more, what is that -y at the end?
Code: Select all
0 7 * * 1 apt-get update && sudo apt-get upgrade -yBojan wrote:So I found this command:
What to add to it, that it will reboot after each update?Code: Select all
0 7 * * 1 apt-get update && sudo apt-get upgrade -y
Code: Select all
0 7 * * 1 apt-get update && sudo apt-get upgrade -y && rebootIt means that it won't ask you if you want to install upgrade, it'll just do it.Bojan wrote:And one more, what is that -y at the end?
-y, --yes, --assume-yes
Automatic yes to prompts. Assume "yes" as answer to all prompts and run non-interactively. If an undesirable situation, such as changing a held package or removing an essential package, occurs then apt-get will abort.