Advance

what is different between DNF and yum [Quick review]

what is different between DNF and yum [Quick review]
3.7
(3)

[Updated on Date: 2021-02-02] After release CentOS 8, some guy asks the question of why yum replace with DNF and what is different between DNF and yum. So we decide to publish an article about that and check what’s different between DNF and Yum. You can visit the packages available in Eldernode to purchase a VPS server. Please stay tuned for the rest of this article. At first, you need to know DNF is the next generation of yum, and as a rule, it might be better than YUM.

What is DNF

DNF stands for Dandified YUM is a software package manager for RPM-based Linux distributions. It is used to install, update, and remove packages in the Fedora/RHEL/CentOS operating system.

It is the default package manager of Fedora 22, CentOS8, and RHEL8. DNF is the next-generation version of YUM and intended to be the replacement for YUM in RPM-based systems. It is powerful and has robust features than you’ll find in yum. DNF makes it easy to maintain groups of packages and capable of automatically resolving dependency.

Recommended Article: DNF command on CentOS 8

What is different between DNF and yum

Yum Package Manager has been replaced by DNF Package Manager since many long-standing issues in Yum remain unresolved.

These problems include poor performance, excessive memory usage, slowdown for dependency resolution.

DNF uses “libsolv” for dependency resolution, developed and maintained by SUSE to improve performance.

It was written mostly in python, and it has its own way of coping with dependency resolution.

Its API is not fully documented, and its extension system only allows Python plugins.

Yum is a front-end tool for rpm that manages dependencies and repositories and then uses RPM to install, download and remove packages.

Why using DNF instead of yum?

There were ultimately three major reasons why Yum was forked into DNF. These reasons were long-standing and serious enough that Yum simply had to go. The reasons were:

1. An undocumented API: This meant more work for developers. In order for developers to do what they needed, it was often necessary to browse through the Yum codebase just to be able to write a call. This meant development was very slow.

2. Python 3: CentOS/RHEL8 was about to make the shift to Python 3 and Yum wouldn’t survive this change, whereas DNF can run using either Python 2 or 3.

3. dependency solving algorithm: This has been an Achilles heel of the Centos package manager for a long time. DNF uses a state-of-the-art satisfiability (SAT), -based dependency solver. This is the same type of dependency solver used in SUSE’s and openSUSE’s Zypper.

To put it simply, yum was outdated and couldn’t stand up to the rigors of the modern CentOS 8 distribution. You can visit the packages available in Eldernode to purchase a CentOS VPS server.

DNF command Benefits

You have to look at this from two different perspectives: The end-user and the developer. If you’re an end-user, the switch from Yum to DNF means one very simple thing: a more reliable experience. Where this reliability comes in is DNFs superior dependency solving.

It will now be a very rare occasion that you go to install a package and the system cannot resolve a dependency. The system is simply smarter.

End-users will also see much less memory usage during package installation. Installations and upgrades will also go much faster. That last bit should be of special importance. Running upgrades with the Yum tool was starting to grow unacceptably slow.

If you’re a developer, the shift to DNF means you’ll be able to work much more efficiently and reliably. All exposed APIs are documented. Another plus for developers is that C will be implement. The developers have created hawkeye and librepo .

They will also be releasing even more C-based APIs in the future. Considering C is still such a widely-used language. So this should be a welcome change to developers.

At the end of this article, If you need to learn how to use DNF and DNF tutorial, you use the DNF Command Tutorial article.

Recommended Article: what is different between DNF and yum [Quick review]

Conclusion

We try in this article “what is different between DNF and yum” explain Yum and DNF and what’s different between those, and check some DNF command benefits and why CentOS 8 using this as a default. We hope the article ” what is different between DNF and yum ” is useful.

How useful was this post?

Click on a star to rate it!

Average rating 3.7 / 5. Vote count: 3

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

2 thoughts on “what is different between DNF and yum [Quick review]

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day