DOKK / manpages / debian 12 / dnf-plugins-core / dnf-local.8.en
DNF-LOCAL(8) dnf-plugins-core DNF-LOCAL(8)

dnf-local - DNF local Plugin

Automatically copy all downloaded packages to a repository on the local filesystem and generating repo metadata.

NOTE:

Generating repo metadata will work only if you have installed createrepo_c package.


/etc/dnf/plugins/local.conf

The minimal content of conf file should contain main and createrepo sections with enabled parameter, otherwise plugin will not work.:

[main]
enabled = true
[createrepo]
enabled = true


For main section you can specify repodir paramater which sets path to local repository.

Other options and comments you can find in configuration file.

See AUTHORS in your Core DNF Plugins distribution

2023, Red Hat, Licensed under GPLv2+

January 22, 2023 4.3.1