So you may have heard of the install gentoo meme, when I looked the guidebook I thought it looked a little complex like with Arch.

Does Gentoo have something special that other distros do not? Apparently you can use the USE FLAGS to determine what stuff you want and it’s meant to be even more lean on resources.

Isn’t there a Gentoo installer like with Arch? With Arch I can confidently just run the installer on a VM but I got stuck with Gentoo

    • Fonzie!
      link
      fedilink
      103 months ago

      How are each of those special? And how are others, inc. Gentoo, almost the same?

        • Fonzie!
          link
          fedilink
          17
          edit-2
          3 months ago

          I did not mean it like that, at all.

          You leave a comment saying these are special and all the others are more or less the same, but don’t explain how that’s the case.

          I am genuinely asking.

          (also sorry for posting thrice, internet issues)

            • @Sbauer
              link
              4
              edit-2
              3 months ago

              Nice overview, don’t want to contest anything you said, just add my 2 cents to it.

              The truth is the lines have gotten awfully blurry the past decade. It’s not just about FHS(basically a standard how the file system is laid out, where binaries go etc) getting more or less phased out(there are dozens of places where binaries can end up these days for example) but also some deeper changes of how we run software on these distributions.

              Frankly arch and cachyos(which is a arch variant, yes it has optimised packages, but so does opensuse, it’s just a decision to leave behind compatibility with older hardware, not some inherent magic) belong into the standard Linux distro bin for me, they do nothing special or noteworthy beyond being competently implemented. They are not really different from Debian, fedora or Ubuntu, you can install those just the same manual way you do arch. Yes arch is rolling and others are release based but opensuse shows how there isn’t that much difference between the models, they run both on the same package base, as did Debian with its sid repo since forever.

              Then we have gentoo and yes it is a bit special even today. The idea behind it is that you compile your own packages instead of using a binary repo. But why? The answer to that is that when you compile a package from source you have a vast influence on the resulting binary, for example by giving instruction to the compiler, that’s how cachyos gets its optimised binaries. But another even larger influence is by using configuration options built into the package by its developers. For example to disable or enable certain parts of the code. What gentoo did was collect and categorise the most common of these options into what became known as use flags, a system configuration that affects every single package built on that system. If you add the -dvd use flag it will strip dvd support from any package that has it. Or maybe you don’t have a printer -cups will remove cups support from all packages. This doesn’t just not install cups, it removes the very support of cups from packages that would otherwise interact/look for it in some way. This has obvious security advantages and is where the notion of gentoo being a lean system comes from, you’re stripping out entire functions of code from your binaries. If there is a bug in a certain OpenSSL mode that’s included in all binaries shipped by other distros, but you have deactivated all modes besides the one you intend to use, you are not affected by the bug. The idea behind gentoo is a kind of customisation that goes beyond the package layer, you’re no longer just choosing your individual packages but also the options of these packages.

              As for the others, immutable, declaratives, cow or a/b root distros… that’s where the lines are getting blurry. The declarative like Nixos are very different in their implementation, but then again, you can use the nix package manager on other distros and we have been using docker containers set up declaratively via compose files for years by now. Likewise the immutable seem very alien, until you realise that they are only divided from their normal counterparts by a very thin line, important yes, but thin nonetheless. There is a reason these new distros get spearheaded by the old guard, a fedora workstation distro is very similar to a fedora silverblue immutable and from opensuse tumbleweed it’s a very close step to opensuse microOS. It’s mostly different default packages and some config options with an added package or two. Sure they seem very different, but just because you bolt the hood of your car closed doesn’t fundamentally change it does it?

              These days I’d say gentoo is for learning. Not just about Linux but about interacting with source code and learning about the individual software you choose to install. The optimisations frankly matter less these days, sure you can optimise for speed or size of the binaries but are you going to be able to tell on that 12 core machine with 2 TB of nvme storage? No, not really. Security through a lean system might be nice, but there are specialised distros that already do so and you can run software in their own namespaces, control them via SElinux, put them in jails, bubblewrap them, containerise or VM them, hell even flatpak them, all probably more effective ways of archiving security.

          • exu
            link
            fedilink
            English
            43 months ago

            Different person, but I’ll try to explain some of what I know.

            Traditional Linux:

            • read/write root and usr
            • only one version of a program can exist*
            • packages are available immediately after install
            • packages are imperative (you tell it what to do, it does that)
            • files swapped in place (can lead to issues like kernel modules missing or Firefox not opening new tabs until restart)

            *you might have python3.8 and python3.9, but those must be created as different packages using different paths in /usr

            NixOS, Guix:

            • declarative package management (basically config file and exactly these packages are installed)
            • usr and parts of root read-only (afaik)
            • packages symlinked to usr
            • multiple versions of packages kept locally (though not all active necessarily)
            • will keep using old package until restart/reboot, therefore not breaking on updates. New instances of a program can use the new package
            • easy to roll back due to multiple versions kept

            Immutable OS (haven’t seen one mentioned by OP, but it’s a category):

            • often imperative package management
            • using snapshots or multiple root partitions for easy rollbacks
            • read-only root and usr
            • packages might only be available after a reboot (depends on implementation and if system packages or something else like Flatpak, which doesn’t need a reboot, are used)

            SerpentOS:

            • experimental distro (ie stuff might change)
            • imperative package manager
            • packages installed to separate tree, but swapped live. Basically A/B root of an Immutable system that doesn’t require a reboot (according to the explaination in the latest blog post)

            Not sure why ClearLinux is on that list of special distros and I don’t know half of the rest so yeah. Hope this explains some of it?