---
name: "dnf5-copr"
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-copr"
---

# dnf5-copr(8)

Copr Command

## NAME

dnf5-copr - Copr Command

## SYNOPSIS

**dnf5 copr \<subcommand\> \[options\] \[arguments\]**

## DESCRIPTION

The **copr** command in **DNF5** is used to manage Copr repositories (add-ons provided by users/community/third-party) on the local system.

## SUBCOMMANDS

- **list**

  ```
  List Copr repositories.
  ```

- **enable \<project-spec\> \[\<chroot\>\]**

  ```
  Download the repository info from a Copr server and install it as a /etc/yum.repos.d/*.repo file.
  ```

- **disable \<project-spec\>**

  ```
  Disable specified Copr repository (if exists), keep /etc/yum.repos.d/*.repo file - just set enabled=0.
  ```

- **remove \<project-spec\>**

  ```
  Remove specified Copr repository from the system. Also removes the /etc/yum.repos.d/*.repo file.
  ```

- **debug**

  ```
  Print info about the system useful for debugging.
  ```

## OPTIONS

- **--hub**

  ```
  Copr hub (the web-UI/API server) hostname. Defaults to copr.fedorainfracloud.org.
  ```

## ARGUMENTS

- **\<project-spec\>**

  Copr project ID to enable. Use either a format OWNER/PROJECT or HUB/OWNER/PROJECT.

  HUB can be either the Copr frontend hostname (e.g. *copr.fedorainfracloud.org*) or the shortcut (e.g. *fedora*). If HUB is not specified, the default one, or *--hub \<ARG\>*, is used.

  OWNER is either a username, or a @groupname.

  PROJECT can be a simple project name, or a "project directory" containing colons, e.g. *project:custom:123*.

  Example: *fedora/@footeam/coolproject*.

- **\<chroot\>**

  Chroot specified in the NAME-RELEASE-ARCH format, e.g. *fedora-rawhide-ppc64le*. When not specified, the *dnf copr* command attempts to detect it.

## EXAMPLES

- **dnf5 copr enable rhscl/perl516 epel-6-x86\_64**

  ```
  Enable the rhscl/perl516 Copr repository, using the epel-6-x86_64 chroot.
  ```

- **dnf5 copr disable rhscl/perl516**

  ```
  Disable the rhscl/perl516 Copr repository
  ```

- **dnf5 copr list**

  ```
  List Copr repositories configured on the system.
  ```

## Author

See AUTHORS.md in dnf5 source distribution.

## Copyright

Contributors to the dnf5 project.
