---
name: "dnf4-local"
section: "8"
platform: "linux"
package: "dnf-plugins-core"
version: "4.10.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnf4-local"
---

# dnf4-local(8)

DNF local Plugin

## NAME

dnf4-local - DNF local Plugin

## DESCRIPTION

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.

## CONFIGURATION

**/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.

## AUTHOR

See AUTHORS in your Core DNF Plugins distribution

## COPYRIGHT

2014, Red Hat, Licensed under GPLv2+
