crontab -e
add
0 0 */10 * * /usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade
0 0 */10 * *
: This means the task is scheduled to run at midnight (00:00) every 10th dayof the month. Here's the breakdown:0
: Minute (0th minute, meaning at the start of the hour)0
: Hour (0th hour, meaning midnight)*/10
: Every 10th day of the month (i.e., day 10, 20, 30, etc.)*
: Any month*
: Any day of the week/usr/bin/apt-get update
: This updates the list of available packages and versions from the repositories configured on the system.&&
: This ensures that the next command (apt-get dist-upgrade
) runs only if the apt-get update command is successful./usr/bin/apt-get -y dist-upgrade
: This upgrades all installed packages to the newest available versions. The -y
flag automatically answers "yes" to prompts, so it can run unattended. The dist-upgrade command intelligently handles package dependencies and may install or remove packages as needed to complete the upgrade.apt-get upgrade
this will break your Proxmox VE Host!hi yes i already saw that post, but the question is reccomended to do upgrade automatic, at the moment i do manual update, but when you have 20-30 proxmox instance to upgrade it takes time
That is a question only you can answer YMMV.hi yes i already saw that post, but the question is reccomended to do upgrade automatic, at the moment i do manual update, but when you have 20-30 proxmox instance to upgrade it takes time