Hacker News new | ask | show | jobs
by nik736 1549 days ago
Please correct me if I am wrong, but you can simply snap install with a --channel, which could be a specific version. This way it is not auto updating, since it's on that specific channel/version.
3 comments

You are wrong :) updates are published to channels and anyone following that channel will get the update.

More about how snap channels work here. https://ubuntu.com/blog/controlling-snap-releases-with-chann...

Aren't channels things like "stable" or "bleeding edge" or something like that? Which means that this would only work if the snap vendor cooperates.
But then you can't really blame Canonical and that makes the wole agument moot.
The argument is that "channels" are not "versions". So inside a channel, you cannot disable updates. And that's the way Canonical operates, they regularly push updates to their "stable" channel. There is no "v1.2.3" channel that will forever stay at that particular version until you switch channels.

The point is that you are the mercy of the snap publisher, and as the sysadmin, you cannot prevent the software from updating. Whether you should or not do that is a different debate.

Canonical directly maintains only a handful of snaps, and even so it's up to the individual teams to do the relevant QA before publishing a version to the stable.

You'd expect that publishers follow the same process, that a stable channel means it's really stable, whereas version breaking changes really end up in per version channel. Ideally you have the latest/{stable,beta,candidate,edge} which follows the latest version of the software, and eg. v1/{stable,beta,candidate,edge}, v2/{stable,beta,candidate,edge}, v3/{stable,beta,candidate,edge} for individual version. A simple concept but surprisingly hard to follow.

Maybe the publishers are really lazy and don't care about the users or the maintenance cost of keeping n versions around is just too high, in which case it's up to the users to make their effort worth it.

I agree with your point, but the issue discussed here is being forced into updating. Sure, that's an issue because some people aren't fully confident that a "minor update" won't break things. They may or may not be right, but that's a separate debate.

The point is that people want to be able to disable automatic updates, even minor ones, and that's not possible.

edit: I can see how my previous comment could have been confusing. To clear it up, I was trying to say that a workaround for the forced updates would be for vendors to publish a "single version channel". So version 1.2.3 would be a dedicated channel, with no updates ever. Version 1.2.4 would be a separate channel, with only that single version. This would of course be impractical, for both the vendor and the user.

AFAIK, selecting a channel doesn't prevent automatic updates, it just limits them to a subset of versions. It doesn't in any way prevent a new version from being published to that channel and automatically installed.