GithubHelp home page GithubHelp logo

isabella232 / dnf5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rpm-software-management/dnf5

0.0 0.0 0.0 4.08 MB

Package management library.

License: Other

Shell 0.11% Ruby 0.69% C++ 94.01% Python 2.66% Perl 0.18% C 0.47% CMake 1.16% SWIG 0.71%

dnf5's Introduction

libdnf

Libdnf is a package management library. It was originally written to support the DNF package manager and grew up into a versatile library. Now you 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

⚠️ The current (dnf-5-devel) branch is subject of a major rewrite. The API/ABI is currently unstable ⚠️

Documentation

Reporting issues

Contributing

  • By contributing to this project you agree to the Developer Certificate of Origin (DCO). This document is a simple statement that you, as a contributor, have the legal right to submit the contribution. See the DCO file for details.
  • All contributions to this project are licensed under LGPLv2.1+ or GPLv2+. See the License section for details.

Writing patches

  • Please follow the contributing guidelines
  • When a patch is ready, submit a pull request
  • It is a good practice to write documentation and unit tests as part of the patches

Building

To install build requirements, run::

$ dnf builddep libdnf.spec [--define '_without_<option> 1 ...]

To build code, run::

$ mkdir build
$ cd build
$ cmake .. [-DWITH_<OPTION>=<ON|OFF> ...]
$ make -j4

To build rpms from git, run::

$ export PREFIX=$(rpmspec libdnf.spec -q --srpm --qf '%{name}-%{version}'); git archive --format=tar.gz --prefix=$PREFIX/ HEAD > $PREFIX.tar.gz
$ rpmbuild -ba --define "_sourcedir $(pwd)" libdnf.spec [--with=<option>|--without=<option> ...]

Testing

To run the tests, follow the steps to build the code and then run::

# from the 'build' directory
$ CTEST_OUTPUT_ON_FAILURE=1 make test

As an alternative, tests can be executed in a verbose mode::

# from the 'build' directory
$ make test ARGS='-V'

Translating

TBD

License

  • The libraries is licensed under LGPLv2.1+
  • The standalone programs that are part of this project are licensed under GPLv2+
  • See COPYING for more details

dnf5's People

Contributors

benierc avatar berolinux avatar conan-kudo avatar dmach avatar dmantipov avatar inknos avatar j-mracek avatar jan-kolarik avatar jrohel avatar keszybz avatar kolanich avatar kontura avatar lukash avatar m-blaha avatar pkratoch avatar ppisar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.