Code: Select all
sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y && sudo apt-get dist-upgradeCode: Select all
sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y && sudo apt-get dist-upgradeCode: Select all
#!/bin/bash
apt update -y && apt full-upgrade -y && apt autoremove -y && apt clean -y && apt autoclean -y
Code: Select all
chmod 751 /home/pi/myupdate.sh
Code: Select all
sudo crontab -e
Code: Select all
0 9 * * 0 /home/pi/myupdate.sh >> log.tx 2>&1
First the disclaimer: I have been using Linux since near the begining, and used to sysadmin Unix networks. I am fairly OCD/paranoid even with my home systems and always run updates interactively, and never with the "-y" switch. I want to know what is available for update and sometimes go investigate changes. I have pinned versions of things in the past. @pcmanbob's advice totally resonates with me.pcmanbob wrote: ↑Tue May 05, 2020 1:44 pmthis is of course if you are happy to blindly install updates without being able to choose options when there are changes to config files, which might leave you with a broken system.
you will also need to do a reboot in some instances , like new kernel installs , but as you will not know when these have taken place you may have to reboot on every update.
Personally I'd rather have my updates happen when I order them. I don't want to find that one day I can't use a machine because it hosed itself with a bad update in the night. If it's going to break I'd like to be there to see what happened and try an fix it.bjtheone wrote: ↑Tue May 05, 2020 2:51 pmHaving said that, my perception is that with Raspbian, between distro updates, there is very little significant change, such that things like config files change. The rate of change in Linux also seems to be slowing at it matures, and Debian was never a hotbed of bleeding edge stuff to start with. What is the breakage risk for Raspbian with doing an auto update cron job as long as you are not upgrading to a new release?