• pewpew
    link
    fedilink
    0
    edit-2
    1 month ago

    Why tf does every app have to mount itself as a virtual block device?

  • @Sibshops@lemm.ee
    link
    fedilink
    English
    01 month ago

    Apt is kind of broken, to be honest. No package should have full system access during installs or execution.

    • @scintilla@lemm.ee
      link
      fedilink
      030 days ago

      How the hell do you learn to use nix. I’m not a programer but figured out how to run gentoo just fine with the guide. nixOS feels like I’m in a mirror maze in the dark and the room is rotating.

      • @kibiz0r@midwest.social
        link
        fedilink
        English
        0
        edit-2
        30 days ago

        Well, Nix is a programming language, so there’s no getting around having to learn basic principles of coding.

        That said, I feel like coming into Nix with a lot of programming experience actually worked against me at first, because I made a lot of assumptions that weren’t true and basically had to “unlearn” certain things.

        The main things being:

        • Lazy evaluation is trippy as hell sometimes
        • The language truly does not allow for side-effects. Everything you might think is a side-effect is really executed from outside the language runtime itself
        • It might be more accurate to think of Nix as a database, where the keys are the parameters of what to build and the values are directories full of the built artifacts

        What really made it click for me was seeing how a derivation object is basically equivalent to a path. So if I do ${pkgs.foo}/bar”, that’s the exact absolute path (plus /bar) where Nix will end up storing the output of the pkgs.foo derivation. Even without actually building the derivation, you can know where it will end up.

        Anyway, the documentation is pretty shitty, so you basically have to scour every community resource you can find and read way more of it than it seems like you should have to. Discord/Matrix servers help a lot too. And learning to navigate the source code for nixpkgs.

        Also: Don’t start with NixOS, imo. Start with dumb throwaway stuff where you make a derivation that downloads a file and unzips it and runs a single command. Once you understand that, do something that requires understanding a bit of nixpkgs, like using overlays. Then you can use NixOS. Otherwise, there’s too much going on all at once.

        Edit:

        • Nix pills is good
        • Vimjoyer is amazing
  • @srestegosaurio@lemmy.dbzer0.com
    link
    fedilink
    English
    029 days ago

    Flatpak and SystemD Portable services are actually pretty good.

    That’s the direction I see Linux going. I personally use NixOS because I am sad.

  • @LeFantome@programming.dev
    link
    fedilink
    0
    edit-2
    29 days ago

    Tar is not a package manager, it is just a packaging format. AppImage has the same problem.

    Flatpak is a bit of a crappy package manager but at least it is one. And, due to its use of container technology, it allows the same packages to run on any Linux kernel (any Linux distro). That is pretty useful.

    Of the other package managers, apk 3 is my favourite but the only distro that uses it is Chimera Linux. Pacman is good. dnf / RPM is ok. apt / deb is in last place for me. The recent Ubuntu 25.04 launch snafu illustrates some of the problems with apt. The first Linus Tech Tips Linux challenge really highlighted the dangers of apt.

    I only used snap briefly but instantly hated it. Fstab was a mess. It was slow. It was proprietary. I fled before I could form an educated opinion.

    • @Samueru_sama@programming.dev
      link
      fedilink
      English
      029 days ago

      it allows the same packages to run on any Linux kernel (any Linux distro). That is pretty useful.

      flatpak itself depends on namespaces, so saying that it works on any kernel is quite an stretch.

      Can flatpak do this? This is a GIMP3 appimage running on ubuntu 10.04 without any container:

      The kernel is so old that even the appimage runtime itself complains of missing functions and has to fallback to a workaround.

  • @33manat33@feddit.org
    link
    fedilink
    01 month ago

    I’d love to use flatpak more, but with my peculiar internet situation, installing a single package can take 6-7 hours.

  • miguel
    link
    fedilink
    01 month ago

    Only tangentially related - but a friend brought over a new kubuntu install and Canonical had the cheek to demand money for VLC patches? They don’t fing own VLC. What the actual f is going on over there, Canonical?

      • miguel
        link
        fedilink
        030 days ago

        I don’t know, this was for a system on kubuntu 24.04, the latest up there. I removed it, replaced it with debian and kde - my friend isn’t a gamer, doesn’t require anything bleeding edge, so that was just a better choice in our opinion.

  • unknown1234_5
    link
    fedilink
    01 month ago

    my issue with snaps is honestly just that they are controlled too much by just one entity (canonical) and there is no reason for them to exist because flatpak already does everything they do.

    • trevor (he/they)
      link
      fedilink
      English
      0
      edit-2
      30 days ago

      My issue with snaps is also the power that Canonical has to fuck you over one day, because of the centralization that you mentioned, but also that their shitty fucking packaging format sucks ass and breaks everything but the most basic of apps. I’ve wasted hours trying to help people with their broken applications that were hijacked when they typed apt install whatever and “whatever” was actually a fucking broken snap package.

      Flatpaks and AppImages actually do the fucking things they’re supposed to. Snaps don’t, and Canonical is pulling a Microsoft by hijacking your package manager.

      Also, Snap sandboxing only works with AppArmor, so if you were hoping that all the breakage was worthwhile because you get sandboxing, you don’t if you’re on anything but a handful of distros 🙂

  • @grrgyle@slrpnk.net
    link
    fedilink
    028 days ago

    Still don’t know how I’m supposed to add dictionaries to FF on snap. So many little issues like this with snaps.

    • AnimalsDream
      link
      fedilink
      English
      029 days ago

      Absolutely my favorite. Just download and go. Super portable.

        • AnimalsDream
          link
          fedilink
          English
          029 days ago

          It would, if there were no other options for package management. Package formats don’t have to be either/or. My systems typically end up with mixes of native packages, flatpak, appimages, and you could technically consider Steam a package management system as well.

    • @srestegosaurio@lemmy.dbzer0.com
      link
      fedilink
      English
      029 days ago

      Last time I read something from the main dev I almost ran stright into the woods.

      Also idk about how it is the management situation, portals integration, etc…

        • @vrighter@discuss.tchncs.de
          link
          fedilink
          029 days ago

          or they somehow still find a way to not work. I can count the number of times i had an appimage just work, and it is exactly 2. Any other time i had crashes

  • Phoenixz
    link
    fedilink
    030 days ago

    That’s because we are…

    If .y Firefox will once again be updated without asking me and then refusing to open any page without a restart I’ll fucking lose it

    • Sonotsugipaa
      link
      fedilink
      English
      030 days ago

      Wait hold on wait, does that bullshit have something with Firefox being distributed through Snap?

      If it does, I’m going to sn… also fucking lose it

      • @mogoh@lemmy.ml
        link
        fedilink
        0
        edit-2
        30 days ago

        I have bad news for you …

        (TBH I am not sure, but as I remember, this problem was specifically a snap problem.)

      • Phoenixz
        link
        fedilink
        029 days ago

        Yeah, it’s snap

        Always updating without letting you know, without asking and it’s ALWAYS at the most inconvenient time

        • Sonotsugipaa
          link
          fedilink
          English
          029 days ago

          Ah gotcha, it’s not the cause but it makes the problem way worse

          • Phoenixz
            link
            fedilink
            03 days ago

            It basically IS the cause as it’s the system doing the updates without asking. But snap has other issues too. For one, it’s the slowest installer in recorded human history, it takes literally ten times longer on snap to install anything. Why? Beats me, in theory it ought to be faster as it shouldn’t have to resolve dependencies but here we are. Try installing anything with snap, it takes forever.

            Then, snap is closed source eon the server side, so fuck all of that, that’s already 200% of reasons not to use it ever. I don’t trust closed source software anymore

  • @Abnorc@lemm.ee
    link
    fedilink
    0
    edit-2
    30 days ago

    It’s not about the package management method that we use. It’s about the friends and enemies we made along the way (while arguing about package management.)

  • @chrash0@lemmy.world
    link
    fedilink
    01 month ago

    i just got an Ubuntu machine at work, and really simple packages are only available as snaps. so i guess i’m going to try out Nix home-manager