DNF4-LOCAL(8)

okay so bestie, welcome to DNF4-LOCAL(8) β€” a page from the dnf-plugins-core manual, and it's literally all about the DNF local plugin. Buckle up, it's short but iconic πŸ’…

✨ NAME ✨

  • dnf4-local β€” the DNF local Plugin. That's the whole name vibe, no cap.

🌸 DESCRIPTION 🌸

It automatically copies all downloaded packages to a repository on the local filesystem and generating repo metadata. It's giving "download and save, but make it a local repo" energy πŸŽ€

NOTE: generating repo metadata will work only if you have installed the createrepo_c package. No package, no metadata magic, periodt 😭

πŸ¦‹ CONFIGURATION πŸ¦‹

The config file lives at:

/etc/dnf/plugins/local.conf

The minimal content of the conf file should contain main and createrepo sections with the enabled parameter, otherwise the plugin will not work. Lowkey non-negotiable, bestie:

[main]
enabled = true

[createrepo]
enabled = true

For the main section you can specify the repodir parameter, which sets the path to the local repository.

Other options and comments you can find in the configuration file β€” go peek, iykyk πŸ‘€

πŸ‘‘ AUTHOR πŸ‘‘

See AUTHORS in your Core DNF Plugins distribution.

2014, Red Hat, Licensed under GPLv2+.


Version 4.10.1, dated Mar 28, 2025 β€” that's the cute little sign-off, bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from