⇤ ← Revision 1 as of 2016-01-24 19:48:42
Size: 647
Comment:
|
← Revision 2 as of 2021-02-09 22:12:18 ⇥
Size: 697
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
On Ubuntu use the unattended-upgrades package. |
Ubuntu Update Script
# automatic update script for ubuntu servers # By John R. Beckett, johnreabeckett@gmail.com # Recommended crontab entry for root user to update weekly: # 6 5 * * 0 /bin/bash /u/standard/linuxupdate_ubuntu >/dev/null 2>&1 # This prevents "TERM is not set, so the dialog frontend is not usable." error PATH="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" MAILTO="" dpkg --configure -a aptitude update -y apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade -y aptitude autoclean -y apt-get autoremove -y shutdown -r now
On Ubuntu use the unattended-upgrades package.