This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3060|Reply: 0

[linux] The difference between Linux package management yum and dnf

[Copy link]
Posted on 10/14/2023 9:34:13 PM | | | |
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:







Previous:Use Docker to build WireGuard geonetworking
Next:WireGuard-based access to peer LAN access
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com