192 points · by tvvocold · 11y ago · 124 comments
I wish they'd keep the yum name, since dnf is still based on yum, even if a lot of the innards have been replaced. Also, "dnf" is not at all awesome to say out loud, while "yum" is among the most awesome commands to say out loud.
His belief in Ansible being a decent idea really kept me going with it after the first 2 months or so, otherwise I might not have continued it as a side project, and over the course of several years, he helped me a ton with various issues and was an amazing sounding board, including sharing a lot of advice when I as being plagued by nuisance CVE reports and wondering what to do about them. We had occasional arguments and he was usually right, and we always resolved things. (We had also previously worked on Func together with Adrian Likins, who wrote most of up2date, which was also a great experience - Seth knocked out most of the fun SSL parts). Back then used to meet around Duke to come up with crazy patent ideas to supplement our low Red Hat salaries (mine was anyway), and ... yeah, so much fun.
At his service, what was super amazing was pretty much everyone said the same thing about how he had helped them, dozens upon dozens of people, and it was really one of the most moving things I've ever seen. One of the few that made you come out saying "whoa" and wanting to be a better person and care about helping other people more than I did. And I think I did. Or I'm trying hard to.
Seth got a lot of hell for yum and shared many of my frustrations with the nature of the OSS community at times, but I still prefer it than a lot of idioms in apt. Things like yumdownloader, createrepo, --enablerepo, --disablerepo, and many things like it, just made it click for me, and it worked so well. And working with people like him at Red Hat made it really feel special to be there and to be able to learn from them.
I think about him every time I run yum, and every time something in apt doesn't work the way I want. Folks should just enjoy the metadata refresh time as a reason to get coffee, and blame PackageKit for your silly yum locks. (ALWAYS. REMOVE. PACKAGEKIT.)
And I agree on keeping the name, and it doesn't clash with "disjunctive normal form" that way too :) .. not that I remember what that is so much.
Indeed, to me, saying "dnf" out loud suggests "did not finish," which is the opposite of what you want from a package repository tool!
From the article:
"undocumented API, broken dependency solving algorithm and inability to refactor internal functions. The last mentioned issue is connected with the lack of documentation. "
Well some of them I don't care about as a user of yum some of them I can verify not true (documentation) and some of them I care about and it works for my use-cases (dependency solving algorithm).
There are always things that won't be fun, and those are the things that get kicked to the curb.
If you're going to swap out: why not switch to apt? What does apt lack that DNF is going to provide? This seems like one of those low hanging fruit where standardization across distributions would make sense.
Even if dnf and zypper are 1000x faster than apt there, that alone wouldn't convince me to use them.
Packages have sticky-vendors, so you only get updates from the same vendor unless you choose to switch. Even if another the update is in a different package repository. This means you don't get flip-flopping package vendors when the same package is available from two vendors and they release updates one after each other.
Another example is the tooling around package/repository signing - Letting the user decide whom to trust without making them jump through hoops to manually import keys.
There's also a lot of things in the packaging itself designed to help support third party vendors. Dependencies tend to be configured with capabilities rather than package names. e.g. The kernel provides information about the binary api version which third party drivers can depend on. Third party kernel modules can also supplement/enhance (soft dependencies - inverse recommends/suggests) specific PCI ids so the solver will suggest installing them if available and compatible with your hardware.
In my view debian package management "just works" because the set of packages is carefully curated and tested, there's a high standard of package quality, and everything is available in one place. PPAs can present problems.
The rpm distro ecosystem philosophy is somewhat different. It's impractical to expect a single organisation to package all the software you will ever need, so let's provide tools to help software from multiple vendors to get along.
Try upgrading from major versions and seeing what happens.
It's absolutely relevant
Naturally no one fully obeys it, because LSB is a mediocre standard in general.
Some of the benefit also derives from the packaging format itself. The ability to unpack DEBs using nothing but shell tools (busybox within a Debian system's pre-boot ramfs is sufficient and has been successfully used by me -- Red Hat loses in this instance by using a ramfs shell that's both 1) larger than Debian's dash and 2) doesn't offer interactive use -- it's a scripting-only shell, FML.
Joey Hess at one time had a detailed comparison of various packaging systems. He's pulled it apparently due to political / fanboi bickering, which is a shame. He's author of 'alien', a tool for converting between packaging formats.
But Policy (and fucking enforcing the fucking hell out of it) trumps.
Source: 18 years' use of both distros and many other Linuxen. 30 years' experience on further Unixen.
All three of those things have gotten better over the years, and I have little doubt that given the attention and effort that RedHat and Debian package managers get, portage could be a clear winner. But the portage we have now has too many pitfalls to be the best all-around choice.
Portage is not used.
It has many of the strengths of Portage, and even go beyond (it builds from source, and users may configure package dependencies, like USE flags on steroids -- its declarative language used to write packages is also used to configure them, so you can do more than just passing flags to a package). But it offers a substantial advantage, because builds are deterministic. The set of installed software (with all needed configuration) is determined from a config file (or many), and from this it's always possible build the same system.
This means that upgrading always end up in the same state as installing from scratch. This also mean that common packages can be cached as binaries, without risk of breakage - it only downloads a binary package when building from source would build exactly the same binary.
Nix also feature atomic upgrades and rollbacks: it only touches the running environment as the very last step of the upgrade (setting up a symlink), and stores the previous versions of packages until garbage collected, so an upgrade stopped in the middle can't break your system (the exception here being kernel upgrades). Indeed, if you interrupt an upgrade or install at any stage, just issue the command again. (also, this architecture makes it incredibly concurrent)
NixOS is a distro that uses Nix. It can provide a GRUB menu to boot previous versions of the system. When you upgrade, you can have it affect running system or only upgrade after a reboot. Either way, when you reboot GRUB will give the option to also boot the system you was using before the upgrade. On a technical level, Nix works a bit like a git repository: each package is addressed by the hash of its derivation (that says how to build it, and all its dependencies), and if more than one system version uses the same package it gets stored only once.
Coupling NixOS with Nixops, a deployment tool; and Disnix, that does service-oriented deployments (like Docker), they can help build more repeatable systems for production servers too.
Some links:
I feel ashamed that for the last ten years I could not find a kind word to the portage developers. For what is worth, they don't care.
Paludis does correct dependency resolution while Portage just pretends to.
It was not mentioned in the post that dnf is based on the openSUSE dependency SAT solver (libsolv) that was created by Michael Schroeder years ago and that powers libzypp and zypper since openSUSE 11.0.
The dnf developers built a thin layer on top of it, called hawkey, and then build dnf in python on top of hawkey.
One of the biggest innovations of libsolv is not only the SAT based solver but also the .solv format which allows to store package metadata for big amounts of packages in an efficient way and operate the solver directly on it.
Seems more like `dnf.baseurl.org` is dead (it's down right now).
Google cache: http://webcache.googleusercontent.com/search?q=cache:PiRy8Wd...
It wouldn't surprise me to see it show up in centos-extras for CentOS 7 if someone sees a benefit to it.
Yum/dnf haven't been merged into systemd yet, please merge
Zypper is actually fairly good. Still way more verbose than it needs to be, but it seems like a fair compromise between "apt-get stupidly-oversized-function-name" and "why the fuck does -Sy mean grab updated package lists from the repo".
When I have to install a font on my machine that isn't in AUR I'll just roll up a PKGBUILD, install it and dust my hands off. Makes it incredibly easy to remove the packages later if I no longer need them.
And once you've built a deb, you can use alien to convert to RPM (the only gotcha is that RPM runs preinst/postinst scripts with an empty environment and dpkg doesn't).
(and I say this as a diehard Arch user who came from Gentoo)