Auto Update

If I knew how to delete posts I would delete the other one of these.

Solution:

cd ..
sudo mkdir home
cd ../home
sudo mkdir jb
cd jb
sudo mkdir scripts
cd scripts
sudo nano /home/jb/scripts/update

Type this;

#!/bin/bash
apt-get update ; apt-get -y upgrade ; apt-get -y dist-upgrade ; apt-get clean ; apt-get -y autoremove ; reboot

Save an exit. Then type:

sudo crontab -e

At the bottom add the following text;

0 3 * * * sudo bash /home/jb/scripts/update

That should auto update your device at 3am every day. I would suggest removing the restart line if you don’t want to chance it. I have gone completely manual for updates after receiving a few that caused issues upon a restart.