Hacker News new | ask | show | jobs
by queenkjuul 48 days ago
Not really, you can't opt out of apt without changing distros, or opt out of systemd without changing distros. So why does snap in particular elicit this reaction. Like every distro "forces" its design decisions on you.

I get the repo thing, kind of. I mean i don't understand it being a showstopper but i do think it's valid criticism. The rest, though, is just distro maintainers doing what they do: making design decisions. Like i said elsewhere, i just can't understand caring about how the maintainers choose to package the packages they maintain, it doesn't affect me. It's not being "forced" on me any more than their choices to use AppArmor or systemd or whatever other base system components.

Edit: the reason i kind of like snaps, other than being easy to make, is that unlike flatpak, they can bundle CLI apps. What alternative is there for a portable, contained CLI package on Linux? You just use docker for everything?

1 comments

> you can't opt out of apt without changing distros

Yes, however apt/dnf/emerge/etc. are main package managers of the systems. They don't slowly overtake packages you use or the repositories of other distributions do not quietly offload package installations to other package managers (e.g.: apt install firefox triggers snap installation in Ubuntu. This is malicious behavior). Brew, flatpak, etc. live alongside your default package manager peacefully.

> systemd without changing distros.

I'm not a fan of systemd, and let's leave it there. We're talking about package managers.

> Like every distro "forces" its design decisions on you.

True in a sense, but none of the distributions have forced their semi-closed source metastasizing package manager on me mid-flight ever, except Ubuntu.

As I said in my previous comment, snap has two problems: closed backend, metastasizing silently, pulling the rug silently under me. Both are not problems of Snap, but how it's pushed on users.

> I get the repo thing, kind of. I mean i don't understand it being a showstopper but i do think it's valid criticism.

Simply put, I have principles. It's important for me to able to host a piece of infrastructure end to end if it comes to that. Snap doesn't allow me that, hence it's Canonical bound. This is not acceptable for me, period.

Before you ask, yes I can compile a Linux distribution end-to-end if it comes to that. I used to build a Debian derivative distribution.

> The rest, though, is just distro maintainers doing what they do: making design decisions.

In this case, Canonical the corporation is building a closed, revenue generating system for themselves. This is not an "engineering process for the sake of better Linux package management". Companies can pay Canonical to have storefronts on Snap store. It's a commercial product, like Ubuntu Landscape. Make no mistakes there.

> I just can't understand caring about how the maintainers choose to package the packages they maintain

Not everyone are emotionless about how and where they put their packages. Communities and how users and developers are treated matter a lot. Packaging a software is not a mere engineering decision, but deciding to interface with a community and communicate with these people.

> It's not being "forced" on me any more than their choices to use AppArmor or systemd or whatever other base system components.

Don't forget your apt package might become a snap tomorrow, without your knowledge with an apt upgrade. I mean, snap is not forced in any way. It just eats package you have. If it doesn't bother you, more power to you.

> other than being easy to make

You can build a binary, lintian-clean .deb package in 5 minutes flat. Been there, done that.

> that unlike flatpak, they can bundle CLI apps.

I beg your pardon: https://flathub.org/en/apps/io.neovim.nvim

> What alternative is there for a portable, contained CLI package on Linux? You just use docker for everything?

Besides Flatpak, you can use Brew and AppImage at least. If you need something fully contained but not Docker, you can use Podman or Apptainer. It runs as a user, compatible with Docker if you need, is free, fast and lightweight. We use rootless containers on our systems where more than a couple of hundred users login at the same time. Nobody leaks anything to other users, and they are very lightweight.

> apt install firefox triggers snap installation in Ubuntu. This is malicious behavior

See, this is just crazy thinking to me, sorry. It's in no way malicious. The system package manager is managing system packages, some of which happen to be Snaps. That is not malicious.

> Don't forget your apt package might become a snap tomorrow, without your knowledge with an apt upgrade. I mean, snap is not forced in any way. It just eats package you have. If it doesn't bother you, more power to you.

Right: it doesn't, and it won't, because i simply do not have any reason to care what binary format my distro maintainers use for their system packages. All i care is that the system packages are reliable and up to date. Nothing is operationally different between the two for me as a user, so it means nothing. This would still bother you even if the Snap backend were open source and self-hostable?

And no, deb packaging is a lot more complex than Snap packaging, i have lots of experience with both.

That neovim flatpak is genuinely the first I've ever seen for a CLI app. If it's possible then i wonder why there's so few of them. Flatpaks for language toolchains would be quite nice (since i currently like using Snap for those). Podman/apptainer are not actual replacements imo, they're a different class of tool. You don't get automatic updates, you have to manage bind mounts and such.

> See, this is just crazy thinking to me, sorry. It's in no way malicious.

Without any hard feelings, I'll agree to disagree here. It's apparent that our perspectives are very different, and that OK.

> And no, deb packaging is a lot more complex than Snap packaging, i have lots of experience with both.

I didn't package Snaps, but I was churning close to 10 .deb packages a day. I'll not ever agree that .deb is a complex package format. It can become sophisticated, but not complex or hard. At least for me.

> If it's possible then i wonder why there's so few of them.

I have no idea. I may play with it too, someday. However, it's apparent that there's no barrier for it.

> Podman/apptainer are not actual replacements imo, they're a different class of tool. You don't get automatic updates, you have to manage bind mounts and such.

While automatic part is true, but can be done with a simple cron. To manage the mounts, etc., I write a simple wrapper and put it in /usr/local/bin or ~/.local/bin depending on who's going to use that, and it works.