dnf vs yum are two different package management tools for installing, updating, and uninstalling packages on Linux. Since many long-standing issues in Yum remain unresolved, the Yum package manager has been replaced by the DNF package manager.
YUM: Yellowdog Update Modifier, rpm's front-end program, which solves package-related dependencies, can locate packages between multiple libraries, and is an alternative tool for up2date.
DNF: The next generation of RPM package managers. DNF release date is May 11, 2015, DNF package manager is written in Python under GPL v2, first appeared in Fedora 18 distribution. In RHEL 8.0, it officially replaced YUM, and DNF Package Manager overcame some bottlenecks of YUM Package Manager, improving user experience, memory usage, dependency analysis, and running speed.
Distinguish:
Dependency resolution: Both DNFs are more capable of handling dependencies Performance: DNF is faster, DNF supports parallel operation, and multiple software packages can be downloaded at the same time Configuration files: dnf uses a configuration file with the .repo suffix, yum uses a .repo suffix configuration file and the main configuration file of /etc/yum.conf User interface: DNF output information is clearer and provides more terminal output information. yum outputs less information and is relatively concise
Note:dnf replaced yum as the default package management tool in CentOS 8 and later。 For older versions of systems, package management can still be done using yum commands.
yum redirects to dnf. , the new version of Red Hat has abandoned yum. As shown below:
|