|
|
|
|
|
by severino
1882 days ago
|
|
I dislike snaps too, but when I used Fedora for a couple of years (around version 25), I didn't like dnf a lot either. It felt very slow in comparison to apt, and also, it was just another new command to learn, after yum et al. In contrast, I've been using the same apt syntax in Debian or Ubuntu installs for two decades now. To me, having the same tool with no breaking changes for ages is a plus. |
|
This is partly true, and partly not.
DNF always updates the local copy of the metadata, so it's more like "apt update && apt upgrade" than just "apt upgrade". I don't recall if Ubuntu has a background task for this, but that might be one reason it's "faster".
DNF also has more metadata to download, and the default parallelism is not very high. If you increase the setting, it gets a lot faster.
And also, DNF records the package update history, so that the origin of every package on the system (whether it was requested installed by a user, or indirectly as a dependency, whether it came from a repo or was side-installed) is auditable. Transactions are recorded and can be viewed and rolled back afterwards. And it uses a more rigorous SAT-solver based approach to dependency solving than apt uses. So it's likely doing more actual work rather than being slower at doing the same thing. Those features can be quite useful.