Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Setting Up Automatic Unattended Updates in Ubuntu

LeoGLeoG Member

This is a handy feature which let's you setup automatic updates especially Security Updates. The Complete Guide is at https://github.com/Leo-G/DevopsWiki/wiki/Ubuntu-Debian-Unattended-Updates, let me know if you have any questions

Thanked by 1yomero

Comments

  • FalzoFalzo Member

    you should have posted that small guide in full here.
    this way your post is nothing more then spamming your github url...

  • YmpkerYmpker Member
    edited May 2016

    Automating updates?

    cd /etc/init.d && nano updates.sh

    In updates.sh enter the following:

    apt-get -y update && apt-get -y upgrade

    Depending on your preferences you can include instable updates or stick to stable updates. You also could include apt-get -y dist-update/upgrade.

    Now save&exit nano file.

    chmod +x updates.sh

    ...and you are done. Will update/upgrade at reboot of your machine. If you want to specifiy update times you could do something similar via cron.

  • LeoGLeoG Member

    @Ympker said:
    Automating updates?

    cd /etc/init.d && nano updates.sh

    In updates.sh enter the following:

    apt-get -y update && apt-get -y upgrade

    Depending on your preferences you can include instable updates or stick to stable updates. You also could include apt-get -y dist-update/upgrade.

    Now save&exit nano file.

    chmod +x updates.sh

    ...and you are done. Will update/upgrade at reboot of your machine. If you want to specifiy update times you could do something similar via cron.

    I feel much more comfortable with the way recommended by the distro, plus it let's me select the type of updates, reboot time and I can configure email notifications.

    Why write a script when all that is already available?

Sign In or Register to comment.