A package file is an archive which contains the binaries and other resources that make software and the pre and post installation scripts. They also provide the information regarding dependencies and other packages required for the installation and running of the software.
In the Linux world, there are two main types of packaging formats, .deb for those in the Debian and Ubuntu world and the .rpm for the Fedora, RHEL and CentOS. These formats also have their own tools for package management. The .debs use apt or aptitude and dpkg while the .rpms have been using YUM, at least until recently. Fedora recently replaced YUM with their new package manager, DNF. Yup, they built from the ground up a new package manager, the Dandified YUM (DNF), to replace it.
What is DNF?
RPM packages will not install unless the prerequisites are installed first so YUM performed the dependency analysis and installed pre-requisites before installing the package. So the people at Fedora developed DNF as a successor or next generation version of YUM. DNF does all of these and supposedly more. DNF stands for nothing in particular. Or it stands for Dandified YUM. DNF was first introduced in Fedora 18 and replaced YUM completely in Fedora 22.
Why the Need for DNF?
Why was DNF needed in the first place? What are the shortcomings of yum that required a whole new package? The few of them are listed below -
Basically, all they are saying is yum was just too outdated for the demands of Fedora in these times.
Why not something like Zypper of zif?
But then still, others ask why didn’t they just go for something like zif or SUSE’s Zypper just adopted since a similar algorithm is employed in DNF? The following were presented -
Key components/dependencies of DNF
The key components of DNF are:
Libsolv - A free package dependency solver using a satisfiability algorithm for solving packages and reading repositories
Hawkey - High-level API for the libsolv library. Hawkey, a library providing simplified C and Python API to libsolv.
Librepo - A library providing C and Python (libcURL like) API for downloading Linux repository metadata and packages
Libcomps - Libcomps is alternative for yum.comps library. It's written in pure C as a library and there are bindings for python 2 and python 3.
Advantages of DNF
DNF comes with a simplified code with about 29000 lines of code compared to over 59000 in YUM. The following features of DNF have been mentioned.
How to use DNF?
Installation of a package
YUM: yum install audacity
DNF: dnf install audacity
Removal of a package
YUM: yum remove audacity
DNF: dnf remove audacity
YUM: yum search audacity
DNF: dnf search audacity
These few commands are to show you that there is not much difference between DNF and YUM. For more commands, you can see the DNF wiki page.
Everything works basically just the same. The only issue now is your muscle memory. For a power user, if you happen to enter YUM instead of DNF, there will be a warning prompt informing you that you have to use dnf instead. Whether DNF is in the right direction or not, it is here to stay. Hopefully, it will replace YUM altogether. Share your thoughts with us in the comments.
Most Read Articles
Translate Our Site
Notice : Please be careful, after translation commands will change.
This website uses marketing and tracking technologies. Opting out of this will opt you out of all cookies, except for those needed to run the website. Note that some products may not work as well without tracking cookies.Opt Out of Cookies