Software:DNF

From HandWiki
Revision as of 08:37, 9 February 2024 by Wikisleeper (talk | contribs) (linkage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: RPM package manager
Dandified Yum
DNF logo.png
DNF running on Fedora 26.png
DNF running on Fedora 26
Developer(s)Red Hat
Initial release18 January 2012; 12 years ago (2012-01-18)[1]
Stable release
4.18.2[2] &
5.1.11[3] / 8 December 2023; 12 months ago (2023-12-08)[2] &
12 January 2024; 11 months ago (2024-01-12)[3]
Written inC, C++, Python
Operating systemLinux, IBM AIX
PlatformRPM
Available inEnglish
TypePackage management system
LicenseGPLv2+ & LGPLv2.1+ & New BSD License
Websiterpm-software-management.github.io

DNF or Dandified YUM[4][5][6] is the next-generation version of the Yellowdog Updater, Modified (yum), a package manager for .rpm-based Linux distributions. DNF was introduced in Fedora 18 in 2013;[7] it has been the default package manager since Fedora 22 in 2015,[8] Red Hat Enterprise Linux 8,[9] and OpenMandriva,[10] and is also an alternative package manager for Mageia.

Perceived deficiencies of yum (which DNF is intended to address) include poor performance, high memory usage, and the slowness of its iterative dependency resolution.[11] DNF uses libsolv, an external dependency resolver.[11]

DNF performs package management tasks on top of RPM, and supporting libraries.

DNF was originally written in Python, but (As of 2016) efforts were under way to port it to C and move most functionality from Python code into the new libdnf library.[12] In 2018, the DNF team announced the decision to move libdnf from C to C++.[13][14] libdnf is already used by PackageKit, a Linux distribution-agnostic package system abstraction library, even though the library does not have most of DNF's features.[15]

Meanwhile, DNF5 is gearing up for an official launch in Fedora Linux 41. This versatile C++ package manager for RPM packages, modules, and comps groups uses libdnf and libsolv, supports Python 3, and is accessible in Fedora 38+.[16]

Adoption

DNF has been the default command-line package manager for Fedora since version 22, which was released in May 2015.[8] The libdnf library is used as a package backend in PackageKit,[15] which offers a graphical user interface (GUI). Later dnfdragora was developed for Fedora 27 as another alternative graphical front-end of DNF.[17][18] DNF has also been available as an alternate package manager for Mageia Linux since version 6 and may become the default sometime in the future.[19]

It is also the default package manager for Red Hat Enterprise Linux, and by extension, AlmaLinux and Rocky Linux.[citation needed]

Dependencies

libdnf

libsolv

  • a free package dependency solver using a satisfiability algorithm for solving packages and reading repositories
  • C
  • New BSD License

librepo

  • a library providing C and Python (libcURL like) API for downloading Linux repository metadata and packages
  • C
  • LGPLv2.1+

libcomps

  • libcomps is an alternative for yum.comps library, written in pure C, and has bindings for Python
  • C
  • GPLv2+

References

  1. on GitHub
  2. 2.0 2.1 on GitHub
  3. 3.0 3.1 on GitHub
  4. "DNF". https://fedoraproject.org/wiki/DNF. 
  5. "What does DNF stand for". https://dnf.readthedocs.io/en/latest/user_faq.html#what-does-dnf-stand-for. 
  6. on GitHub
  7. Byfield, Bruce. "Will DNF Replace Yum?". http://www.linux-magazine.com/Online/Features/Will-DNF-Replace-Yum. 
  8. 8.0 8.1 "Fedora 22 Released, See What's New [Workstation"]. WebUpd8. 2015-05-26. http://www.webupd8.org/2015/05/fedora-22-released-see-whats-new.html. 
  9. Matteson, Scott (2019-03-30). "What's new with Red Hat Enterprise Linux 8 and Red Hat Virtualization". TechRepublic. https://www.techrepublic.com/article/whats-new-with-red-hat-enterprise-linux-8-and-red-hat-virtualization/. 
  10. "Switching to RPMv4". OpenMandriva. 2018-03-07. https://www.openmandriva.org/en/news/article/switching-to-rpmv4. 
  11. 11.0 11.1 Edge, Jake (2014-01-15). "DNF and Yum in Fedora". LWN.net. https://lwn.net/Articles/580223/. 
  12. Šilhan, Jan (2016-02-24). "DNF into C initiative started". http://dnf.baseurl.org/2016/02/24/dnf-into-c-initiative-started/. 
  13. Mach, Daniel; Mracek, Jaroslav (22 March 2018). "Announcing DNF 3 development". https://rpm-software-management.github.io/announcement/2018/03/22/dnf-3-announcement/. 
  14. Edge, Jake (28 March 2018). "DNF 3: better performance and a move to C++". https://lwn.net/Articles/750238/. 
  15. 15.0 15.1 Aleksandersen, Daniel (2017-07-05). "Use DNF rather than PackageKit on Fedora". https://ctrl.blog/entry/packagekit-dnf. 
  16. "Changes/ReplaceDnfWithDnf5". https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5. 
  17. "Changes/Replace yumex-dnf with dnfdragora - Fedora Project Wiki". https://fedoraproject.org/wiki/Changes/Replace_yumex-dnf_with_dnfdragora. 
  18. "F27 Self Contained Change: Replace Yumex-DNF with dnfdragora - devel - Fedora Mailing-Lists" (in en). https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UK3RBRADUMUOONCEQSGWA5GY625N6YQG/. 
  19. Larabel, Michael (2016-09-05). "Mageia To Offer DNF, But Will Keep Using URPMI By Default". Phoronix. https://www.phoronix.com/scan.php?page=news_item&px=Megia-6-To-Have-DNF-Yum. 

External links