---
name: "dnf5-repo"
section: "8"
platform: "linux"
package: "dnf5"
version: "5.4.6.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/dnf5-repo"
---

# dnf5-repo(8)

Repo Command

## NAME

dnf5-repo - Repo Command

## SYNOPSIS

**dnf5 repo \<subcommand\> \[options\] \[\<repo-spec\>...\]**

## DESCRIPTION

The **repo** command in **DNF5** offers several queries for getting information about repositories configured on the system.

## SUBCOMMANDS

- **list**

  ```
  List available repositories.
  ```

- **info**

  ```
  Show detailed info about repositories.
  ```

## OPTIONS

- **--all**

  ```
  Show information about all known repositories.
  ```

- **--enabled**

  ```
  Show information only about enabled repositories.
  This is the default behavior.
  ```

- **--disabled**

  ```
  Show information only about disabled repositories.
  ```

- **--json**

  ```
  Show information in JSON format.
  Similar information can be obtained with dnf5 --dump-repo-config REPO_ID command.
  ```

## EXAMPLES

- **dnf5 repo info --all**

  ```
  Print detailed info about all known repositories.
  ```

- **dnf5 repo list --disabled \*-debuginfo**

  ```
  Print disabled repositories related to debugging.
  ```

- **dnf5 config-manager setopt repo\_id.enabled=0**

  ```
  Persistently disable repository using the config-manager plugin command.
  See dnf5-config-manager(8) for more details.
  ```

## JSON OUTPUT

- •

  **dnf5 repo list --json**

  The command returns a JSON array of objects, each describing one repository. Each object contains the following fields:

  - •

    **id** (string) - Repository ID.

  - •

    **name** (string) - Repository name.

  - •

    **is\_enabled** (boolean) - Repository status, either **true** (enabled), or **false** (disabled).

- •

  **dnf5 repo info --json**

  The command returns a JSON array of objects, each describing one repository. Each object contains the following fields:

  - •

    **id** (string) - Repository ID.

  - •

    **name** (string) - Repository name.

  - •

    **is\_enabled** (boolean) - Repository status, either **true** (enabled), or **false** (disabled).

  - •

    **priority** (integer) - Repository priority.

  - •

    **cost** (integer) - Repository cost.

  - •

    **type** (string) - Repository type.

  - •

    **exclude\_pkgs** (array of strings) - List of excluded packages.

  - •

    **include\_pkgs** (array of strings) - List of included packages.

  - •

    **timestamp** (integer) - Timestamp of the last metadata update, UNIX time.

  - •

    **metadata\_expire** (integer) - Metadata expiration time. If not set, value is taken from global config.

  - •

    **skip\_if\_unavailable** (boolean) - Whether to skip the repository if it is unavailable.

  - •

    **repo\_file\_path** (string) - Path to the repository file.

  - •

    **base\_url** (array of strings) - List of base URLs. They are “effective” base URLs, i.e., after expanding any variables included.

  - •

    **metalink** (string) - Metalink URL.

  - •

    **mirrorlist** (string) - Mirrorlist URL.

  - •

    **gpg\_key** (array of strings) - List of OpenPGP keys.

  - •

    **repo\_gpgcheck** (boolean) - Whether to perform GPG check of the repository metadata.

  - •

    **pkg\_gpgcheck** (boolean) - Whether to perform GPG check of the packages.

  - •

    **available\_pkgs** (integer) - Number of available packages in the repository.

  - •

    **pkgs** (integer) - Number of packages in the repository.

  - •

    **size** (integer) - Total size of packages in the repository, in bytes.

  - •

    **content\_tags** (array of strings) - List of content tags.

  - •

    **distro\_tags** (array of strings) - List of distro tags.

  - •

    **revision** (string) - Repository revision.

  - •

    **max\_timestamp** (integer) - Maximum timestamp from repomd records; UNIX time.

For more details about the fields, see the **REPO OPTIONS** section in [dnf5.conf(5)](/dnf5.conf/5.md).

## SEE ALSO

```
dnf5(8), --dump-repo-config option <#dump-repo-config-option-ref-label>
dnf5.conf(5), Repo Options <#repo-options-label>
```

## Author

See AUTHORS.md in dnf5 source distribution.

## Copyright

Contributors to the dnf5 project.
