Review notice
100% LLM-generated. Not yet reviewed by a human. Experimental.
Background: DNF5 RPM manifests¶
This is research for a possible package-resolution backend, not a DNF5 backend in this POC. The DNF5 manifest command is explicitly experimental. It uses libpkgmanifest, whose input and resolved-manifest schemas describe RPM content, not a complete image definition.
The default rpms.in.yaml is a prototype-format input with
contentOrigin.repos, a package list, and arches; the plugin calls
parse_prototype
to convert its supported subset. The separate
native libpkgmanifest input schema
models repositories and package install/reinstall requests directly.
dnf5 manifest resolve solves the prototype request and writes
packages.manifest.yaml. The
resolved schema
groups packages by architecture and records their names, EVRs, repository IDs,
locations, and optionally checksums. manifest new can instead capture a
resolved package set from specs or an installed system.
The distinction between resolution and consumption matters:
manifest download
matches available RPMs against recorded checksums when present, whereas the
current manifest install
selects recorded NEVRAs and repository IDs but does not explicitly compare
manifest checksums before installation. Do not advertise the latter as
checksum-enforced installation.
Build policy is separate from the package list¶
The native input schema only exposes allow_erasing under options (the
prototype converter maps allowerasing to it); neither input encodes whether
documentation is installed. DNF5 does have a global
--no-docs option,
implemented as tsflags=nodocs.
Likewise install_weak_deps affects package selection but lives in DNF
configuration, not the manifest input schema. A future builder must keep
resolution and installation policy consistent and record choices such as
docs, weak dependencies, architecture, repository configuration, and release.
For a fresh --installroot,
release and repository configuration also need explicit handling; the target
has no RPM database from which to infer $releasever yet.
Possible fit¶
A later DNF backend could accept a separately resolved manifest as a package lock for pure extensions, keeping the original upstream image definition alongside it. A small experiment would resolve/download from a disposable repository, independently check RPM hashes, then compare installed NEVRAs in an explicit installroot. We must not silently translate Fedora bootc or Atomic Desktop treefiles into this package-only schema: their postprocessing, initramfs, OSTree layout, and image metadata remain native backend concerns.
Neither the plugin nor libpkgmanifest creates the /proc and /dev mounts
package scriptlets may require, finalizes a bootc rootfs, or builds an OCI
image. The separate, closed DNF5 mount proposal
and Hummingbird's pipeline show why those steps
need their own explicit contract. manifest-to-rootfs would therefore be too
narrow as the umbrella project name unless this tool's scope changes.