Recent Ubuntu versions have automated updates enabled. However, sometimes you may want to turn off automatic updates in Ubuntu or disable unattended automatic updates, since they increase CPU usage. In this article, we will look at how to disable automatic updates in Ubuntu.
How To Disable Automatic Updates in Ubuntu
It is very easy to disable automatic updates in ubuntu.
Open terminal and run the following command to open the auto upgrades file.
$ sudo vi /etc/apt/apt.conf.d/20auto-upgrades
Also read : How to Set up Static IP in Ubuntu
Change the ‘0’ in following line to ‘1’
APT::Periodic::Update-Package-Lists "0";
to
APT::Periodic::Update-Package-Lists "1";
Also read : How to Enable Key based Authentication in SSH
If the above steps do not work for you, try running the following command to achieve the same result.
$ sudo dpkg-reconfigure unattended-upgrades
Related posts:
How to Open Multiple Files in Vim
How to Stop Linux Package Update in Ubuntu
How to Run Linux Commands Without Logging in History
How to Use Key-Value Dictionary in Shell Script
How to Check if User Has Sudo Access
How to Add/Remove Software Repository in Fedora
How to Check Cp Progress in Linux
How to Change Root Password in CentOS, RHEL, Fedora Linux