What's the difference between package manager and why are there so many?

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

LeFantome,

“Are they….justified”?

  1. Somebody thought the need for a new package manager was great enough to spend time creating one. That person at least must think it is justified.
  2. We, the users, have not chosen just one of the options to be the standard. Does that “justify” that they all exist?

In the short term, the popularity of Linux is certainly hurt by the complexity of the ecosystem and the lack of standardization. As a product, it would see better adoption of it were more standardized. Without writing a book about why, there is no doubt about this. The short version is that, today, Linux is many products, none of which can compete as effectively as one would and all of them are impaired by the confusion this causes.

In the longer run though, it is almost certainly one of the great strengths of Linux. Linux is many products and as a result, it can target and effectively fill almost every niche. That is going to make it very hard for alternatives to compete at some point. Once Linux knowledge and Linux applications ( yes, I know ) become more mainstream, this compatibility between options becomes a strength. I can have my own operating system that is just the way I want it, but it still runs Docker and Stream ( as examples ).

Think of the cereal aisle at the grocery store. If I want to introduce a new cereal ( or pasta sauce or whatever ), coming up with one that has 10 flavours is not going to work ( without immense marketing muscle ). None of them will sell well enough and probably all of them will get pulled from store shelves. I would be better off launching one. However, once I have a mature market position, I can have not just the regular version but the whole wheat version, the honey nut version, the cinnamon version, the holiday version , etc. They will collectively make each other stronger and all potentially sell well ( again, think pasta sauce flavours if that makes more sense to you ).

This is why there was The Tesla Roadster at first and now there are the Model S, Model 3, Model X, Model Y, and maybe the Cyber Truck.

Linux is not a “product” though. It is an Open Source program. While any given Linux distributor ( distribution ) may think like I outline above, collectively the Linux market is fragmented. Linux is a mix of commercial, community, and individual interests all scratching their own itch.

I am super interested in Chimera Linux right now and fairly negative towards Ubuntu. This makes me part of your problem though. Chimera Linux makes “Linux” less predictable, more confusing, and more frustrating for new and potential users. Pushing everybody to Ubuntu would be a better market strategy. That said, I personally want to use Chimera Linux and, while I say that I want Linux to succeed, I also secretly hope that Ubuntu will fail. Chimera Linux uses a package manager used by only one other Linux ( and in fact they use different, incompatible versions of it so really they are unique ). Clearly, my priorities are mid-aligned with the premise of your question.

So, what does “justified” mean in the Linux space.

penquin,

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

GnomeComedy,

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

penquin,

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. 😂

andruid,

Dnf-5 was/is supposed to be a big speed improvement, no?

penquin,

Not sure. I have fedora 38 in a VM and it’s still very slow.

andruid,

Not targeted to be default until Fedora 41. So if you wanted to try it out you would have to install it your self.

penquin,

Ok then, I’ll search it up and install it.

andruid,

Sweet I hope it really is better for you then!

penquin,

I actually did install it. I hate to judge it in a virtual machine, but I’ve noticed a small difference. It’s still slow, but not as slow as the other one. Fun fact, the only reason why I don’t use fedora is that I hate their installer. I have 3 drives on my PC, and I’m so scared that I’d mess things up and lose my photos/videos/games etc 😂 The installer is so confusing. I remember figuring it out once then just forgot it again.

andruid,

I custom install every time, partially to preserve my user data partition, partially because I don’t like the defaults (I like mirroring my disks and leaving space to grow into later if I want)

penquin,

Same here, that’s why I have 3 different drives in my PC, 512GB nvme ssd for root, 1TB SATA SSD for home, and 2 TB SATA SSD just for games/emulation and steam

recarsion,

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,
@digger@lemmy.ca avatar

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

Decker108,

Same here, but lately I’ve also been pushed towards Snap and Flatpak. I miss the old visual Synaptic tool though…

digger,
@digger@lemmy.ca avatar

I like Flatpak and Appimage. I won’t touch Snaps.

flashgnash,

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

Pantherina,

Packagekit. Its a mess

cyclohexane,

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.

lolcatnip,

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
Ramin_HAL9001,

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,

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,

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,

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

moonpiedumplings,

Yes.

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

msage,

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #