Manifest Command
Warning
The manifest plugin is under development and considered experimental. The interface and behavior may change.
Synopsis
dnf5 manifest new [options] [<package-spec-NPFB>...]
dnf5 manifest download [options]
dnf5 manifest install [options]
Description
For working with RPM package manifest files using the libpkgmanifest library.
skip_if_unavailable and skip_broken will be set to false for all operations.
newCreate a manifest file based on a list of packages or the installed packages on the system.
If given a list of packages, all packages and their dependencies will be resolved and pinned in the manifest file.
If a list of packages is not given, all installed packages on the system will be pinned in the manifest file.
resolveCreate a manifest file from a provided input file.
Resolves the list of packages specified in the input file and pins all packages and their dependencies in the manifest file.
downloadDownload all packages specified in the manifest file to disk.
By default, packages are downloaded to a subfolder named after the manifest file. You can also use the
--destdiroption to specify a custom directory for the downloaded packages.The manifest file may contain packages for multiple base architectures. By default, only packages corresponding to the current system architecture are downloaded. To download packages for specific architectures, use the
--archoption.installInstall all packages specified in the manifest file.
Arguments
<package-spec-NPFB>Specification for including a package in the manifest file. Local RPMs are not supported. For more information, refer to Specifying Packages.
Options
--inputSpecify a custom path for the prototype input file. By default,
rpms.in.yamlis used.--manifestSpecify a custom path for the manifest file. By default,
packages.manifest.yamlis used.--srpmInclude source packages in consideration. Not supported for the
installcommand.--use-systemConsider currently installed system packages for dependency resolution and exclude them from the resulting manifest file.
--use-host-reposIn addition to the repositories defined in the input file, load repositories from host configuration and use them for dependency resolution. Only applies to the
resolvecommand.--archSpecify a comma-separated list of architectures to work with. By default, only packages corresponding to the current system architecture are processed.
--per-archCreate a separate manifest file for each requested base architecture. By default, a single manifest file is created for all architectures.
Examples
dnf manifest resolveResolve the
rpms.in.yamlprototype input file in the current directory and create the resulting manifest file at the default location:packages.manifest.yaml.dnf manifest newCreate a new manifest file from the system’s installed packages. The new manifest file will be created at the default location:
packages.manifest.yaml.dnf manifest new alsa-lib alsa-toolsCreate a new manifest file containing the
alsa-libandalsa-toolspackages along with all their dependencies.dnf manifest new wget --use-systemCreate a new manifest file including the
wgetpackage and all its uninstalled dependencies.dnf manifest download --manifest /home/user/Downloads/manifest.yaml --srpmDownload all packages, including source packages, specified in the given manifest file.
dnf manifest install -yInstall all packages specified in the manifest file located in the current directory under the default file name, automatically answering “yes” to all prompts during the transaction resolution.