You can finally disable Snap updates

Table of Contents

During the Ubuntu Summit, a long-awaited feature was quietly released for preview: You can now completely turn off automatic updates of snaps.

“The snap refresh --hold command holds, or postpones, snap updates for individual snaps, or for all snaps on the system, either indefinitely or for a specified period of time.”

(currently only available in edge channel of snapd)

This might sound like an obvious feature to many people, but it’s a continental shift in philosophy for the Snap developers.

Snaps allow users to easily install Linux applications. By default, snaps automatically update to the newest version. Snapd, the service that manages snaps, checks for updates four times in a day. Although there are many ways to control when and how often updates are installed, it was not possible to completely turn off automatic updates.

Wait, what?

Yes, this was a conscious choice by the developers. Outdated and insecure Linux system are a massive problem because they are weaponized into botnets that attack services and spread malware. In an attempt to help solve this issue, the Snap developers decided to simply make it impossible to turn off automatic updates. When Snap was initially released in 2014, automatic updates were so new to the Linux ecosystem that the developers feared every list of “10 things to do after installing <distro>” would include “turn off automatic updates”, making the issue of insecure Linux devices even larger.

Why now?

Nowadays, however, automatic updates have become commonplace. Even Ubuntu server has been automatically installing security updates since late 2016! Over the years, the snap update mechanism has been continuously refined to ensure updates don’t break things and to allow updates to happen at a convenient time. As a result, adding the functionality to disable updates will probably not result in a new wave of insecure devices. Moreover, as Snap matures and enters large enterprises with IT teams dedicated to manually updating software, adding this feature is a logical next step to give IT teams the control and predictability they have come to expect from Linux systems.

Tags :

Related Posts

A fundamental difference between Snap and Flatpak

Snaps and Flatpaks are often compared to each other because they both make it super easy for Linux users to get the latest versions of desktop applications. If a Linux user wants to install the latest version of apps like Slack, Krita or Blender, either tool will work just fine. There is one fundamental difference between Snaps and Flatpaks, however. While both are systems for distributing Linux apps, snap is also a tool to build Linux Distributions.

Read More

Tutorial: S4A on Ubuntu

S4A, or Scratch for Arduino, is an app that you can use to program Arduino boards using Scratch. You can program robots and LED’s without writing any code: all you need to do is drag and drop instructions in the visual programming environment.

Read More

Why Linux desktop apps need containers

The Snap Store and Flathub are two universal app stores for Linux. They are very different from how traditional software distribution works. As is always the case with new software, the question “why do we need this?” often arises. “Including software in distribution repositories has worked for so long, so why do we need to change it?”

Read More