94
submitted 1 year ago by GravitySpoiled@lemmy.ml to c/linux@lemmy.ml

Are they so different that it's justified to have so many different distributions? So far I guess that different package manager are the reason that divides the linux community. One may be on KDE and one on GNOME but they can use each other's packages but usually you are bound to one manager

top 50 comments
sorted by: hot top controversial new old
[-] seitanic@lemmy.sdf.org 61 points 1 year ago* (last edited 1 year ago)

You could also ask: "Why are there so many audio formats? Why are there so many video formats?" And so on.

The reason is different people have different ideas on what is the best way to do things.

[-] RegalPotoo@lemmy.world 38 points 1 year ago

And different goals. A large part of why apt is the way it is comes down to the way the Debian project is structured - a project relying on a large number of volunteers vs something like Red Hat where most of the changes come from employees, so has different rules and standards for how packages should be constructed

[-] yoevli@lemmy.world 47 points 1 year ago

As another user mentioned, package managers are specific to distributions rather than DEs. The main difference between them is that they're developed by the respective distribution teams, but there are some practical differences too. For example, apt supports versioned dependencies while pacman doesn't because of the different distribution models between Debian and Arch (monolithic vs. rolling release). This affects their dependency resolution strategy with each being better suited for it's respective distribution.

To address your point about package managers being the main difference between distros, this isn't quite true. As mentioned, different distros have different distribution models, priorities, and overall biases/opinions that affect the user experience in a variety of ways and make them better suited to different use cases. I would never dream of putting Arch on one of my servers in the same way that you'd probably never catch me installing Debian on my gaming machine.

[-] 30p87@feddit.de 7 points 1 year ago

never dream of putting Arch on one of my servers in the same way that

All my devices, including servers and pi, on Arch testing (Only nvidia has fucked me twice):

[-] cerement@slrpnk.net 40 points 1 year ago
[-] pastermil@sh.itjust.works 5 points 1 year ago

pretty much.

load more comments (1 replies)
[-] Ramin_HAL9001@lemmy.ml 33 points 1 year ago* (last edited 1 year ago)

I wouldn't worry too much about the package manager, just worry about whether the distro has a good package repository. If it has all the software you want to use, then use it. In my opinion, most package managers (dnf, apt, pacman, xbmp) are basically the same, and you would only notice a big difference if you ever tried to make your own package for your own software.

That said, a few package managers are very different from all the rest:

  • Crux OS "prt-get": simple and stupid: just downloads and installs tar archives.
  • Gentoo "emerge": builds all software from source code when you install it. This provides some guarantees that the source code was not tampered with by the distro maintainers, this is great if you need to review all of the source code that is running on your system, but terrible for most people who don't want to spend so much computing power on compiling stuff every time you do a software update.
  • Nix and Guix: creates its own blockchain-like database of isolated package dependency chains on your system, allowing you to instantly roll-back to the previous set of installed packages if you ever install something that breaks your system. It also guarantees that the software can be checked bit-for-bit (using SHA hash) traced back to the exact version and dependencies of the source code that built it. Nix and Guix packages also live peacefully side-by-side with any other package manager since all Nix/Guix apps are completely self-contained within its own database. In a way, it is sort of like one big AppImage or Docker container, but you can just keep adding or removing stuff to it as often as you want.
  • Silverblue, SteamOS, VanillaOS, BlendOS, CarbonOS: distributes "immutable images," so it is impossible modify the operating system at all. Updates will ship an entirely new operating system with all packages built-in. However you are allowed to install software into your home directory, and you can install FlatPacks and AppImages. This provides a great deal of security in exchange for a tiny bit of inconvenience.

My personal preference: I use ordinary Debian or Ubuntu to install the critical software that needs to be stable and reliable, and I use Guix OS on the side to install the bleeding-edge things that might break a lot.

[-] dino@discuss.tchncs.de 12 points 1 year ago

I couldn't disagree more! Package managers are actually the only thing which differentiates distributions by a large margin. Syntax should be intuitive, download/updates fast and reliable. Also when watching git repositories for new software alternatives, you e.g. see often packages for good package managers, whereas you need to go some extra mile for "stable" package managers.

[-] Ramin_HAL9001@lemmy.ml 9 points 1 year ago

I wouldn’t worry too much about the package manager, just worry about whether the distro has a good package repository.

download/updates fast and reliable. Also when watching git repositories for new software alternatives, you e.g. see often packages for good package managers, whereas you need to go some extra mile for “stable” package managers.

But I would say these are not features of the package manager software, rather they are features of the package repository, that is, the online service that provides the packages. It doesn't matter if you use Apt, DNF, Pacman, if the package repo is slow, fully of packages that haven't been built right, the package manager software won't do much to make it better.

But like I said, a few package manager are really unique, like Gentoo Emerge, Crux Prt-Get, and Nix and Guix.

[-] dino@discuss.tchncs.de 3 points 1 year ago

Can you decouple a package manager from its repository like that? And even if, is that a real world example?

Yes.

Ubuntu and debian both use apt, but differing repos. Different versions of ubuntu/debian use different repos, with newer/older software.

[-] dino@discuss.tchncs.de 3 points 1 year ago

Ubuntu and Debian differences...don't see your point here. Nobody in Arch uses apt? Nobody on ubuntu uses pacman. If you use pacman you are using Arch repositories.

load more comments (2 replies)
[-] msage@programming.dev 4 points 1 year ago

Also, bit part of Portage (Gentoo "emerge") is being able to 'flag out' parts of the package out (or in) to the compilation.

Let's say you want to not have telemetry in your packages. So you set '-telemetry' globally, and each package that has known telemetry parts will not compile locally - so it can not be turned on (unless it's hidden really well).

Or you want to use pulseaudio? You can flag it globally, or for specific packages. That way you can influence software you install without knowing much about anything build-related - the work is done by the repository maintainers.

They won't be able to pry Gentoo from my cold dead hands. Arch, Nix/Guix can suck it, all my money goes to the Gentoo

[-] Sunrosa@lemmy.world 4 points 1 year ago

From what I've heard compiling locally also allows for hardware optimizations specific to your system, though that may be false, as I've never used gentoo.

[-] msage@programming.dev 4 points 1 year ago

Sure, but such optimizations won't usually matter a lot. I have no hard data on that, but would still prefer having smaller binaries from removing unnecessary BS to having CPU optimizations.

Fortunately I got both ^^ And the system feels a lot more responsive to Ubuntu, but I never ran any benchmarks to prove that.

[-] Sunrosa@lemmy.world 3 points 1 year ago

Yeah the smaller binaries is a big part too. I bet it feels like having your system hand-crafted just for you

[-] msage@programming.dev 3 points 1 year ago

It does. Unfortunately I don't spend as much time on my PC lately.

Also I still use binary blobs like Steam.

[-] flashgnash@lemm.ee 31 points 1 year ago

Oh no, there are 5 package managers out there and they're all wildly different

I know! I'll make a standard, universal package manager that'll be better than all the others that everyone will use!

There are now 6 different package managers

[-] archon@sh.itjust.works 7 points 1 year ago* (last edited 1 year ago)

/insert xkcd link/

[-] Pantherina@feddit.de 4 points 1 year ago

Packagekit. Its a mess

load more comments (1 replies)
[-] AProfessional@lemmy.world 23 points 1 year ago

The package manager is really only a small part of the story.

A distro at the end of the day is a API/ABI platform. What makes Debian what it is, is that it has a specific set of old unmoving packages. What makes Arch is that it has the latest APIs always. And everything in between like Fedora.

So even if Fedora used dpkg it wouldn’t change anything, you can’t use its packages on Debian.

As to why so many exist… well a lot of them suck in their own unique way.

[-] Vilian@lemmy.ca 10 points 1 year ago

As to why so many exist… well a lot of them suck in their own unique way.

lmao, true

[-] iopq@lemmy.world 6 points 1 year ago

Except in NixOS, it's literally a distro built around a package manager. But it doesn't force you to choose, you can have both unstable and stable packages

[-] AProfessional@lemmy.world 3 points 1 year ago

Yeah modern usage in general involves silo’d ABIs, be it Flatpak, Nix, Docker/Podman. Modern languages even try to move away from any ABI.

Of course there are upsides and downsides to the traditional approach.

[-] lolcatnip@reddthat.com 3 points 1 year ago

Modern languages even try to move away from any ABI.

I wouldn't put it that way. In the case of Rust, it seems everyone wants to have a stable ABI for a number of reasons (e.g. making dynamic linking possible without FFI), but the core developers feel like the ABI is still too unstable to commit to anything.

[-] AProfessional@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

In my experience a lot of Rust developers love the lack of shared libraries and bundling everything, viewing it as a huge win. Maybe someday it will support it but I feel it will be less commonly relied on.

[-] lolcatnip@reddthat.com 4 points 1 year ago* (last edited 1 year ago)

I've seen that sentiment but I think it's more a matter of people making excuses for Rust and not wanting to admit that it has any shortcomings compared to C++.

It's the same mentality that leads C++ developers to defend things like header files.

[-] lolcatnip@reddthat.com 15 points 1 year ago

I think a lot of what drives the creation of redundant open source tools is that the urge to address a matter of personal taste meets the urge to start a new project, so people create new things that are different in key ways from older ones, but not necessarily better, and not necessarily even different enough to justify the amount of work that goes into them.

In some ways it feels a lot easier to start a new project then to build off an existing one:

  • You don't have to familiarize yourself with the old code, which may be in a language you don't know or don't like

  • You don't have to deal with the existing maintainers, who may or may not be supportive of the changes you want to make

  • You don't have to support use cases that don't matter to you personally

[-] Drito@sh.itjust.works 14 points 1 year ago* (last edited 1 year ago)

Some differences can be explained. Pacman was created after the Debian package manager (I guess that because Debian is older than Arch) . It is justified because Pacman is faster than Apt. But its too much work to replace Apt by Pacman comparing to the benefits.

But in some cases I don't know why. As instance I wonder why a distro, such as Void, created its own package manager instead of using the Alpine one. If Alpine is younger than Void, invert the sentence of course.

[-] khorovodoved@lemm.ee 5 points 1 year ago

Void was created just for testing xbps. Without xbps there would be no Void.

load more comments (3 replies)
[-] s_s@lemm.ee 13 points 1 year ago* (last edited 1 year ago)

Because linux runs on an incredible amount of platforms with an incredible amount of hardware targets and platform goals.

It runs on every supercomputer and every raspberry pi and every android phone, as well as most web servers and almost every steamdeck.

Use cases are so dramatically different there will always be multiple distributions with their own needs for package managers.

[-] cyclohexane@lemmy.ml 13 points 1 year ago

Some package managers do have differences that justify a separate project (nix, gentoo's portage, etc).

For others, sometimes package managers are very similar feature-wise. But some developers would rather remake the thing because they would understand their code a lot better than someone else's. Or because it would be far easier for them to customize rather than extend another project.

Imo it is developer laziness. Being able to use other people's work is a valuable skill. But then again, this is open source, and people are free to develop the software they want the way they want.

[-] recarsion@discuss.tchncs.de 12 points 1 year ago

Because people will never agree on a single one, and it's FOSS so nothing is forced. I for one am glad I don't have to use apt because I prefer pacman, just as I am glad someone who doesn't want to use an Arch-derivative has Debian and apt to fall back on.

[-] digger@lemmy.ca 2 points 1 year ago

Hi, that's me! I've been using apt and Debian derivatives for 17 years. Bookworm is fantastic!

load more comments (2 replies)
[-] waspentalive@lemmy.one 10 points 1 year ago

There are many different "X" because people have different tastes in their choice of "X". I like KDE, the next guy likes Gnome. I like Apt, but I might like whatever NIXOS uses, others like Yum or DNF. I kinda like the idea behind GoboLinux, probably because I was a MAC OSx user for a long while.

[-] caseyweederman@lemmy.ca 25 points 1 year ago

One of the different Xs is called Wayland

[-] folkrav@lemmy.ca 7 points 1 year ago

I see what you did, and I appreciate it

load more comments (1 replies)
[-] Quazatron@lemmy.world 10 points 1 year ago

Diversity generates competition that drives innovation. Also, people mostly work on what they like and use what they like. Although it certainly spreads resources on duplicate projects, you can't force people to work or use your personal favourite. You'll get used to it.

[-] beyond@linkage.ds8.zone 10 points 1 year ago* (last edited 1 year ago)

Any "why are there too many X's on Linux" (where X is package manager, desktop environment, init system etc) appear to stem from the silly assumption that there happens to be an already built operating system called Linux and all these people are forking it and putting in their own stuff for the sake of their own egos and nothing else.

When really, the answer fundamentally boils down to either one of two things: either it doesn't exist yet, or the existing solution fails to meet a need. Linux, itself, is merely a kernel; it didn't come with a package manager or desktop environment. Those things all had to be made by separate parties and there isn't always agreement on how best to do them.

As a Guix user, I believe the Guix package manager has advantages over "traditional" GNU/Linux package managers, as well as other so-called "universal package managers" such as Flatpak.

[-] radioactiveradio@lemm.ee 8 points 1 year ago

Using Arch in a distrobox, no difference, but the AUR is convienient.

[-] michaelrose@lemmy.ml 6 points 1 year ago

Are they so different that it’s justified to have so many different distributions?

Linux isn't a project its a source compatible ecosystem. A parts bin out of which different people assemble different things. The parts being open source means you don't need anyone's permission or justification to make something different out of them.

From these many and varied efforts comes life, vitality, interest, intellectual investment. You can't just take the current things you like best and say well what if we all worked on THOSE when many of them wouldn't even have existed save for the existence of a vital ecosystem that supported experimentation and differentiation.

If we really believed in only pulling together maybe you would be developing in cobol on your dos workstation.

[-] ytg@feddit.ch 5 points 1 year ago

People have different opinions on how packages should be managed. Of course, there are some package managers which are very similar to each other (DNF and zypper have the same backend), but they can also get really different (Nix/Guix and pacman are basically completely opposite in philosophy). It comes down to preference, and you can't force anything.

[-] Patch@feddit.uk 5 points 1 year ago

Some of them are more or less historic (for example rpm/dnf and dpkg/apt), where they were developed at a similar time by unrelated projects and have just carried on separately ever since.

Others have been developed to represent very different approaches (such as portage, which is based on the traditional BSD way of managing software by building from source, or snap and flatpak, which containerise applications).

The multitude of systems don't really cause as many problems as you'd think. As a rule, non-containerised packages need to be custom-built for each distro anyway, so it doesn't really make any difference which packaging tool is chosen by that distro. That is, you can't really take a debian .deb package and expect it to work properly on Fedora, even if you install dpkg/apt first.

[-] penquin@lemm.ee 4 points 1 year ago

Imagine having only one option, and that option is dnf. I'm out. I don't want Linux anymore.

[-] GnomeComedy@beehaw.org 7 points 1 year ago

Ok I'll bite. What's so bad about dnf? I would take it anyday over apt.

[-] penquin@lemm.ee 5 points 1 year ago

Not much really. It is great, but slow as shit and makes me want to toss my computer across the room. I just want to install one tiny 5 kb package, I don't want you to take 10 minutes checking all the RPM fusions repos and go to the moon and back then install my package. No, just install the damn thing. I'll ask you when I need you to check that long list of repos. 😂

load more comments (10 replies)
[-] EuroNutellaMan@lemmy.world 4 points 1 year ago

I don't think package managers are DE-only but rather depend on the distro

[-] luthis@lemmy.nz 3 points 1 year ago

KDE and Gnome are just desktop environments. I use Gnome on Arch which uses pacman as the package manager. I could use KDE or XFCE or i3 or anything. The package manager is tied to the distro, and you can use almost any software with them.

load more comments
view more: next ›
this post was submitted on 30 Oct 2023
94 points (92.7% liked)

Linux

48363 readers
409 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS