How can I disable automatic update for a single snap in Ubuntu?

mahonya

The recommended way for a system wide installation of Intellij idea is to use snap. When I do that, snap updates the IDE installation which is a big problem for me because updating the development environment causes issues for me and as a developer I'd like strict control of my development environment.

If I disable snap, then I cannot even start the IDE. Google searches return nothing but meaningless long flame wars or complete suspension/disabling of snap.

Is there any way of simply telling snap not to update a piece of software while keeping all else up to date?. I'm using Ubuntu 18.04

Rinzwind

You can not. The only thing you can do is delay the update.

From the manual:

Automatic refresh

By design, non-devmode snaps installed from the store are automatically updated on a regular cadence. By default, the snapd daemon checks for updates 4 times each day.

Controlling refresh frequency

Sometimes the user wishes to have snaps refresh at known times, rather than the default. This can be achieved with the snap set system refresh.timer command. The user can specify a range of days or times when they’d prefer refreshes to occur. The following example sets the snapd daemon to refresh snaps only between 4AM and 7AM and between 7PM and 10:10PM.

snap set system refresh.timer=4:00-7:00,19:00-22:10

In theory you could alter the refresh frequency ever day where you keep moving the update moment into the future but this will not work. The snap will get updated at some point (and just ignore your refresh frequency).

See this discussion and the topics from niemeyer.

In that same link post #9 from mwinter (2017) would suggest 2 things:

Me (personally) could do this. But then I rather dislike doing any [additional] filtering on a router as this could cause issues in the future… It also blocks other snap’s and potential more (not sure what all would be at the same location) Another (in my opinion simpler) solution is to download the snap and install it locally - not from store.

  1. block using a firewall rule. That would kill all snap updates. Not a single one.
  2. remove the snap installed from the store and use a locally installed one.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I update all Snap packages?

From Dev

How do I update skype through snap in ubuntu?

From Dev

How can i disable the automatic index creation in elasticsearch?

From Dev

How can I disable automatic highlighting of the current line in Geany?

From Dev

How can I disable the automatic translation of MS web pages?

From Dev

How can I disable the automatic gray selection in WKWebView?

From Dev

How can i disable the update prompt?

From Dev

How do I utterly stop automatic update checks in Ubuntu 19.04?

From Dev

How to disable automatic Nuget Package Update in Xamarin

From Dev

How can I stop windows from rebooting after an automatic update?

From Dev

How can I remove the buggy ubuntu software center that replaced snap store, Ubuntu 20.04?

From Dev

How can I disable all warnings for a single file with Clang 3.8?

From Java

How can I disable ARC for a single file in a project?

From Dev

How can I disable single-click to open on Pantheon/Elementary?

From Dev

How do I disable automatic DivX update popups on Mac OS X

From Dev

How can I update jmeter in ubuntu

From Dev

How can I update ubuntu to kubuntu?

From Dev

Disable automatic plugin update

From Dev

How can I disable software update notifications in kde/plasma

From Dev

How can I disable the Timeline in Windows 10 April 2018 Update?

From Dev

Can I disable the Ubuntu splashscreen?

From Dev

How can I fix snap run on non-Ubuntu Linux kernel 4.18?

From Dev

How can I disable automatic filtering in selectize.js? Built-in / plugin / modilfy source?

From Dev

How can I disable the automatic login of the last active user in Windows 8.1?

From Dev

Automatic suspend - "Computer will suspend very soon because of inactivity" - how can I disable this?

From Dev

How can I make items snap to a grid?

From Dev

How can I change or hide the ~/snap directory?

From Dev

How can I create an architecture independent snap?

From Dev

How can I change or hide the ~/snap directory?

Related Related

  1. 1

    How can I update all Snap packages?

  2. 2

    How do I update skype through snap in ubuntu?

  3. 3

    How can i disable the automatic index creation in elasticsearch?

  4. 4

    How can I disable automatic highlighting of the current line in Geany?

  5. 5

    How can I disable the automatic translation of MS web pages?

  6. 6

    How can I disable the automatic gray selection in WKWebView?

  7. 7

    How can i disable the update prompt?

  8. 8

    How do I utterly stop automatic update checks in Ubuntu 19.04?

  9. 9

    How to disable automatic Nuget Package Update in Xamarin

  10. 10

    How can I stop windows from rebooting after an automatic update?

  11. 11

    How can I remove the buggy ubuntu software center that replaced snap store, Ubuntu 20.04?

  12. 12

    How can I disable all warnings for a single file with Clang 3.8?

  13. 13

    How can I disable ARC for a single file in a project?

  14. 14

    How can I disable single-click to open on Pantheon/Elementary?

  15. 15

    How do I disable automatic DivX update popups on Mac OS X

  16. 16

    How can I update jmeter in ubuntu

  17. 17

    How can I update ubuntu to kubuntu?

  18. 18

    Disable automatic plugin update

  19. 19

    How can I disable software update notifications in kde/plasma

  20. 20

    How can I disable the Timeline in Windows 10 April 2018 Update?

  21. 21

    Can I disable the Ubuntu splashscreen?

  22. 22

    How can I fix snap run on non-Ubuntu Linux kernel 4.18?

  23. 23

    How can I disable automatic filtering in selectize.js? Built-in / plugin / modilfy source?

  24. 24

    How can I disable the automatic login of the last active user in Windows 8.1?

  25. 25

    Automatic suspend - "Computer will suspend very soon because of inactivity" - how can I disable this?

  26. 26

    How can I make items snap to a grid?

  27. 27

    How can I change or hide the ~/snap directory?

  28. 28

    How can I create an architecture independent snap?

  29. 29

    How can I change or hide the ~/snap directory?

HotTag

Archive