In order to automatically upgrade packages on a Kali, Ubuntu, or Debian system, I add the following line to my crontab as root:
sudo crontab -e # To edit the root user's crontab
Then add this line to run the updates at 8:00AM:
00 8 * * * /usr/bin/apt-get update > /dev/null 2>&1 && /usr/bin/apt-get -y dist-upgrade > /dev/null 2>&1 && /usr/bin/apt-get -y autoremove > /dev/null 2>&1
No comments:
Post a Comment