How to disable automatic updates on ubuntu

I have to admit that this post is heavily influenced by OMG! Ubuntu! How to disable automatic updates on ubuntu. Therefore instead of me effectively reproducing the content here, I would urge you to read that post for the instructions on how to disable automatic updates on ubuntu.

points out in the post, that disabling automatic updates in ubuntu is not a recommended and that users who seek to disable this functionality should have an alternative work flow.  There are legitimate reasons why users would want to disable this functionality i.e. conserving bandwidth being one of them. I frequently run into this situation with my laptop that I use to travel with.  When I connect to the internet via GSM and when travelling i.e. in Europe and having to contend with roaming charges, I don’t really want to download 300MB of updates. I prefer to wait till I am in a free Wifi zone to do updates.

Over the years I have adapted my morning work flow, to do my updates as soon as I log on in the morning. Therefore I have created a simple BASH Script that I execute.

Download BASH Script

 

I save this file to my Home Directory and as part of my morning routine,  I open up twitter and catch up on OMG! Ubuntu articles, is I simply also  open a terminal window and type

My updates then run in the background.

The simplified version of this script is as follows

 

Gary Woodfine

Freelance Full Stack Developer at threenine.co.uk
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.
π