Scroll to navigation

DNF4-COPR(8) dnf-plugins-core DNF4-COPR(8)

NAME

dnf4-copr - DNF copr Plugin

Work with Copr & Playground repositories on the local system.

  • The copr command is used to add or remove Copr repositories to the local system
  • The playground is used to enable or disable the Playground repository

SYNOPSIS

dnf copr [enable|disable|remove|list|search] <parameters>

dnf playground [enable|disable|upgrade]

ARGUMENTS (COPR)

Enable the name/project Copr repository with the optional chroot.
Disable the name/project Copr repository.
Remove the name/project Copr repository.
List installed Copr repositories (default).
List enabled Copr repositories.
List disabled Copr repositories.
List available Copr repositories for a given name.
Search for a given project.
Enable the name/project Copr repository from the specified Copr hub, Hub is be specified either by its hostname (eg. copr.fedorainfracloud.org) or by an ID that’s defined in a configuration file.

OPTIONS (COPR)

All general DNF options are accepted, see Options in dnf(8) for details.

Specify a Copr hub to use. Default is the Fedora Copr: https://copr.fedorainfracloud.org.

CONFIGURATION (COPR)

/etc/dnf/plugins/copr.conf /etc/dnf/plugins/copr.d/ /usr/share/dnf/plugins/copr.vendor.conf

(mandatory), protocol (default https) and port (default 443) parameters.:

[fedora]
hostname = copr.fedorainfracloud.org
protocol = https
port = 443



There is also a vendor configuration that allows a vendor to specify the distro ID that copr should use by default. This is useful for vendors that want to use Copr for their own distro. The vendor configuration is in /usr/share/dnf/plugins/copr.vendor.conf (optional) or /etc/dnf/plugins/copr.conf:

[main]
distribution = fedora
releasever = 37


ARGUMENTS (PLAYGROUND)

Enable the Playground repository.
Disable the Playground repository.
Upgrade the Playground repository settings (same as disable and then enable).

OPTIONS (PLAYGROUND)

All general DNF options are accepted, see Options in dnf(8) for details.

EXAMPLES

Enable the rhscl/perl516 Copr repository, using the epel-6-x86_64 chroot.
Disable the rhscl/perl516 Copr repository
List available Copr projects for user rita.
Search for Copr projects named tests.

KNOWN ISSUES

Copr plugin does not respect -4 and -6 options of dnf command when enabling a Copr respository. Users are advised to configure a global address preference in /etc/gai.conf.

AUTHOR

See AUTHORS in your Core DNF Plugins distribution

COPYRIGHT

2024, Red Hat, Licensed under GPLv2+

August 22, 2024 4.9.0