Scroll to navigation

DNF-MODULESYNC(8) dnf-plugins-core DNF-MODULESYNC(8)

NAME

dnf-modulesync - DNF modulesync Plugin

Download packages from modules and/or create a repository with modular data.

SYNOPSIS

dnf modulesync [options] [<module-spec>...]

DESCRIPTION

modulesync downloads packages from modules according to provided arguments and creates a repository with modular data in working directory. In environment with modules it is recommend to use the command for redistribution of packages, because DNF does not allow installation of modular packages without modular metadata on the system (Fail-safe mechanism). The command without an argument creates a repository like createrepo_c but with modular metadata collected from all available repositories.

See examples.

ARGUMENTS

<module-spec>
Module specification for the package to download. The argument is an optional.

OPTIONS

All general DNF options are accepted. Namely, the --destdir option can be used to specify directory where packages will be downloaded and the new repository created. See Options in dnf(8) for details.

Download only packages from the newest modules.
Enable repositories with source packages
Enable repositories with debug-info and debug-source packages
Resolve and download needed dependencies

EXAMPLES

Download packages from nodejs module and crete a repository with modular metadata in working directory

dnf download nodejs

The first download command downloads nodejs package into working directory. In environment with modules nodejs package can be a modular package therefore when I create a repository I have to insert also modular metadata from available repositories to ensure 100% functionality. Instead of createrepo_c use dnf modulesync to create a repository in working directory with nodejs package and modular metadata.
Download package required for installation of minimal profile from module nodejs and stream 14 into directory /tmp/my-temp and all required dependencies. Then it will create a repository in /tmp/my-temp directory with previously downloaded packages and modular metadata from all available repositories.

dnf module install nodejs:14/minimal --downloadonly --destdir=/tmp/my-temp

The first dnf module install command downloads package from required for installation of minimal profile from module nodejs and stream 14 into directory /tmp/my-temp. The second command dnf modulesync will create a repository in /tmp/my-temp directory with previously downloaded packages and modular metadata from all available repositories. In comparison to dnf --destdir=/tmp/my-temp modulesync nodejs:14/minimal --resolve it will only download packages required for installation on current system.

SEE ALSO

dnf(8), DNF Command Reference

AUTHOR

See AUTHORS in your Core DNF Plugins distribution

COPYRIGHT

2024, Red Hat, Licensed under GPLv2+

February 6, 2024 4.4.4