microdnf README

The project's README from github.com/rpm-software-management/microdnf. As one markdown file: README.md.

microdnf

A minimal dnf for (mostly) Docker containers that uses libdnf and hence doesn't require Python.

This project was inspired by and derived from https://github.com/cgwalters/micro-yuminst

Reporting issues

Contribution

Here's the most direct way to get your work merged into the project.

  1. Fork the project

  2. Clone down your fork

  3. Implement your feature or bug fix and commit changes

  4. If the change fixes a bug at Red Hat bugzilla, or if it is important to the end user, add the following block to the commit message:

    = changelog =
    msg:           message to be included in the changelog
    type:          one of: bugfix/enhancement/security (this field is required when message is present)
    resolves:      URLs to bugs or issues resolved by this commit (can be specified multiple times)
    related:       URLs to any related bugs or issues (can be specified multiple times)
    
    • For example::

      = changelog =
      msg: Don't print lines with (null) in transaction report
      type: bugfix
      resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1691353
      
    • For your convenience, you can also use git commit template by running the following command in the top-level directory of this project:

      git config commit.template ./.git-commit-template
      
  5. Push the branch to your fork

  6. Send a pull request for your branch

microdnf (rpm-software-management/microdnf)

Searching Database…

What is this?microdnf is a minimal, lightweight implementation of dnf — the RPM package manager used on Fedora and RHEL — written in C and aimed mostly at Docker containers.
So is it a separate tool, or part of dnf itself?It's a standalone C binary, not a dnf plugin: you invoke microdnf directly, and it sits on libdnf — the same library the full dnf is built on.
How do I get it into my container image?Install the microdnf package in your Fedora/RHEL-based image (dnf install microdnf), then call microdnf in place of dnf in your Dockerfile to install and manage RPMs.
Do I need Python installed in the image to run it?No — that's its main selling point: it uses libdnf and skips the Python runtime dnf depends on, keeping slim container images small.
Does it have all the features of regular dnf?It's explicitly a minimal dnf; the README doesn't list which commands or plugins are supported, so expect the common package operations rather than full dnf feature parity.
Is this only for containers, or would I use it on my Fedora machine too?It's aimed mostly at Docker containers. On a regular Fedora or RHEL system you'd normally just use dnf; microdnf is for image builds where footprint matters.
Size
0.2 MB
Stars
250
Age
10y
Commits · 90 Days