How to: Apt-update and apt-upgrade as Cronjob on Raspberry Pi

Step 1: Open Crontab on Raspberry Pi

sudo crontab -e

Step 2: Add Cronjob to Raspberry Pi

0 3 * * * root /usr/bin/apt-get update && /usr/bin/apt-get upgrade -q -y

Leave a Comment

Your email address will not be published. Required fields are marked *