About

Libdnf is a package management library. It was originally written to support the DNF package manager and grew up into a versatile library. Now we can use it for building custom tools that load repositories, query packages, resolve dependencies and install packages.

It is powered with libsolv, wrapping it with an easy to use programming interface.

Libdnf supports working with the following artifacts:

  • RPM repositories (repomd)

  • RPM packages

  • Comps groups

  • Comps environments

  • Advisories (updateinfo, errata)

  • Modules (modulemd)

Libdnf interfaces with several programming languages with the following support:

  • C++ - fully supported

  • Python 3 - fully supported

  • Perl 5 - best effort

  • Ruby - best effort

  • Go - doesn’t work, looking for contributors

  • C - not implemented, doesn’t seem to be a priority for any of our existing API users

License

  • The libraries is licensed under LGPLv2.1+

  • The standalone programs that are part of this project are licensed under GPLv2+

  • See COPYING.md for more details

Authors

Libdnf has been developed mainly by the Red Hat’s Software Management team. Many features, bug fixes and bug reports came also from the community, see AUTHORS.md and git history for the complete list.