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…

这是什么东西?microdnf 是 dnf 的一个极简轻量实现——dnf 是 Fedora 和 RHEL 上使用的 RPM 软件包管理器——它用 C 语言编写,主要面向 Docker 容器。
那它是一个独立的工具,还是 dnf 自带的一部分?它是一个独立的 C 语言可执行文件,不是 dnf 的插件:你直接运行 microdnf,它基于 libdnf——完整版 dnf 也是建立在同一个库之上的。
我怎么把它装进我的容器镜像?在基于 Fedora/RHEL 的镜像中安装 microdnf 软件包(dnf install microdnf),然后在 Dockerfile 里用 microdnf 代替 dnf 来安装和管理 RPM 软件包。
镜像里需要装 Python 才能运行它吗?不需要——这正是它的主要卖点:它使用 libdnf,绕开了 dnf 所依赖的 Python 运行时,让精简的容器镜像保持小巧。
它具备普通 dnf 的全部功能吗?它明确就是一个极简版的 dnf;README 里并没有列出支持哪些命令或插件,所以可以预期它只涵盖常见的软件包操作,而不是和完整版 dnf 功能完全对等。
它只适合容器用,还是我在自己的 Fedora 电脑上也能用?它主要面向 Docker 容器。在普通的 Fedora 或 RHEL 系统上,你一般直接用 dnf 就行;microdnf 是给那些在意体积的镜像构建用的。
Size
0.2 MB
Stars
250
Age
9y
Commits · 90 Days