← 返回命令列表

Linux command

copr 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Enable a COPR repository

sudo dnf copr enable [owner]/[project]

Disable a COPR repository

sudo dnf copr disable [owner]/[project]

List enabled COPR repositories

dnf copr list

Search for COPR projects

dnf copr search [keyword]

Remove a COPR repository

sudo dnf copr remove [owner]/[project]

Enable a specific release

sudo dnf copr enable [owner]/[project] [fedora-39-x86_64]

说明

COPR (Cool Other Package Repo) is Fedora's community build system that allows users to create and share custom RPM repositories. The dnf copr plugin provides easy management of COPR repositories through the DNF package manager. COPR enables developers to build and distribute packages that aren't in official Fedora repositories, including newer versions of software, experimental packages, or software with licensing that prevents inclusion in official repos. Users can enable these repositories with a single command. The system automatically handles GPG key import and repository configuration. Projects are identified by owner/project format, such as user/myproject. Each project can build for multiple Fedora and EPEL versions.

参数

enable _OWNER/PROJECT_
Enable a COPR repository for package installation.
disable _OWNER/PROJECT_
Disable a COPR repository without removing it.
remove _OWNER/PROJECT_
Remove a COPR repository configuration.
list
List all enabled COPR repositories.
search _KEYWORD_
Search for COPR projects by name or description.
--hub _URL_
Use an alternative Copr instance.
-y
Assume yes to all prompts.

FAQ

What is the copr command used for?

COPR (Cool Other Package Repo) is Fedora's community build system that allows users to create and share custom RPM repositories. The dnf copr plugin provides easy management of COPR repositories through the DNF package manager. COPR enables developers to build and distribute packages that aren't in official Fedora repositories, including newer versions of software, experimental packages, or software with licensing that prevents inclusion in official repos. Users can enable these repositories with a single command. The system automatically handles GPG key import and repository configuration. Projects are identified by owner/project format, such as user/myproject. Each project can build for multiple Fedora and EPEL versions.

How do I run a basic copr example?

Run `sudo dnf copr enable [owner]/[project]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does enable _OWNER/PROJECT_ do in copr?

Enable a COPR repository for package installation.