search
HomeSystem TutorialLINUXUbuntu finally supports disabling automatic updates of snap packages

snap is a software packaging and deployment system developed by Canonical for operating systems that use the Linux kernel and the systemd init system. These software packages, called snaps, and the tool that uses them, snapd, are available across a range of Linux distributions and allow upstream software developers to publish their applications directly to users.

With snap, users can easily install Linux applications. By default, snapd will check for updates four times a day and automatically update the snap application to the latest version. While there are many ways to control when and how often updates are installed, users cannot completely turn off automatic updates for security reasons.

Although the original intention of snap is good, many developers are deeply troubled by it. From time to time, they will find that commonly used development tools are automatically updated, resulting in incompatible plug-ins and dependencies, and they have to manually Fallback version. Because of this, the first thing many developers do after installing Ubuntu is to uninstall the snap.

Canonical announced today that it allows users to temporarily or permanently disable automatic updates for snap format packages. By default, snap packages are automatically updated to ensure that your application is always up to date.

Ubuntu 终于支持禁用 snap软件包自动更新

However, due to the automatic update mode of the snap software package format, sometimes a certain software may become incompatible and unusable. The good news is that although Canonical now allows users to set temporary or permanent disabling, it does not support graphical operations and needs to be executed using the command line in the terminal.

We learned that, for example, if you want to temporarily disable automatic updates for the snap package of VLC media player, you can enter:

snaprefresh--hold=72hvlc

Then the output will be like this:

Generalrefreshesof"vlc"helduntil2022-11-17T12:04:59Z

If you want to temporarily disable the automatic update of the snap package, the command is:

snaprefresh--hold=48h

If you want to permanently disable the automatic update of the snap package, the command is:

snaprefresh--hold

On the contrary, Re-enable automatic updates with the --unhold parameter.

snap refresh --unhold

To re-enable automatic updates for a specific application, such as Firefox, just add the name to the command:

snap refresh --unhold firefox

This command does not currently appear in the official version of Ubuntu. If you If you want to try it, you need to switch snapd to the edge channel through the command:

snap refresh snapd --edge

After the test is completed, if you need to switch snapd back to the stable channel, you need to use the command:

snap refresh snapd --stable 

The world has been suffering for a long time snap , but with the continuous improvement of the snap update mechanism, Ubuntu has finally added support for disabling automatic updates of snap applications. Will everyone give snap a chance?

The above is the detailed content of Ubuntu finally supports disabling automatic updates of snap packages. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:脚本之家. If there is any infringement, please contact admin@php.cn delete
How does process management differ between Linux and Windows?How does process management differ between Linux and Windows?May 04, 2025 am 12:04 AM

The main difference between Linux and Windows in process management lies in the implementation and concept of tools and APIs. Linux is known for its flexibility and power, relying on kernel and command line tools; while Windows is known for its user-friendliness and integration, mainly managing processes through graphical interfaces and system services.

What are the typical use cases for Linux versus Windows?What are the typical use cases for Linux versus Windows?May 03, 2025 am 12:01 AM

Linuxisidealforcustomization,development,andservermanagement,whileWindowsexcelsineaseofuse,softwarecompatibility,andgaming.Linuxoffershighconfigurabilityfordevelopersandserversetups,whereasWindowsprovidesauser-friendlyinterfaceandbroadsoftwaresupport

What are the differences in user account management between Linux and Windows?What are the differences in user account management between Linux and Windows?May 02, 2025 am 12:02 AM

The main difference between Linux and Windows in user account management is the permission model and management tools. Linux uses Unix-based permissions models and command-line tools (such as useradd, usermod, userdel), while Windows uses its own security model and graphical user interface (GUI) management tools.

How does the command line environment of Linux make it more/less secure than Windows?How does the command line environment of Linux make it more/less secure than Windows?May 01, 2025 am 12:03 AM

Linux'scommandlinecanbemoresecurethanWindowsifmanagedcorrectly,butrequiresmoreuserknowledge.1)Linux'sopen-sourcenatureallowsforquicksecurityupdates.2)Misconfigurationcanleadtovulnerabilities.Windows'commandlineismorecontrolledbutlesscustomizable,with

How to Make a USB Drive Mount Automatically in LinuxHow to Make a USB Drive Mount Automatically in LinuxApr 30, 2025 am 10:04 AM

This guide explains how to automatically mount a USB drive on boot in Linux, saving you time and effort. Step 1: Identify Your USB Drive Use the lsblk command to list all block devices. Your USB drive will likely be labeled /dev/sdb1, /dev/sdc1, etc

Best Cross-Platform Apps for Linux, Windows, and Mac in 2025Best Cross-Platform Apps for Linux, Windows, and Mac in 2025Apr 30, 2025 am 09:57 AM

Cross-platform applications have revolutionized software development, enabling seamless functionality across operating systems like Linux, Windows, and macOS. This eliminates the need to switch apps based on your device, offering consistent experien

Best Linux Tools for AI and Machine Learning in 2025Best Linux Tools for AI and Machine Learning in 2025Apr 30, 2025 am 09:44 AM

Artificial Intelligence (AI) is rapidly transforming numerous sectors, from healthcare and finance to creative fields like art and music. Linux, with its open-source nature, adaptability, and performance capabilities, has emerged as a premier platfo

5 Best Lightweight Linux Distros Without a GUI5 Best Lightweight Linux Distros Without a GUIApr 30, 2025 am 09:38 AM

Looking for a fast, minimal, and efficient Linux distribution without a graphical user interface (GUI)? Lightweight, GUI-less Linux distros are perfect for older hardware or specialized tasks like servers and embedded systems. They consume fewer res

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools