Snap fix channel

Hello
I have a question about snap channel management
When i installed my lxd server by snap i used the snap install lxd command, so I am therefore currently in version 4.9.
What I would like now is to turn off new automatic updates.
I think I understood that I just need to refresh the current channel
snap switch lxd --channel=4.9/stable and thus the tracking will go from latest/stable to 4.9/stable and the automatic refresh of the snap will no longer change the lxd version
Did I understand the operation correctly?

to sum up:
1: lxd installation.

sudo snap install lxd
snap info lxd

snap-id:      J60k4JY0HppjwOjW8dZdYc8obXKxujRu
tracking:     latest/stable
refresh-date: today at 13:52 UTC
  1. switch channel:

snap switch lxd --channel=4.9/stable
snap info lxd

snap-id:      J60k4JY0HppjwOjW8dZdYc8obXKxujRu
tracking:     4.9/stable
refresh-date: today at 13:52 UTC

and there lxd will never be updated automatically. If I want to update it manually, I will just have to snap refresh --channel=4.10/stable (4.10 is an example)

is this process correct?

Please take a look at Managing the LXD snap as this covers some of the options available to manage updates.

But yes, that should stick your version on 4.9.

Although it should be:

snap refresh lxd --channel=4.9/stable

Hi @tomp
I had read the documentation before posting :slight_smile:
I just wanted to be sure I understood what I read.

Great, yes you’ve understood it correctly. :slight_smile:

Great.

Thank you for this confirmation, and well done for all the work done by the lxd team

1 Like