copr2url is a Go-based command-line tool to fetch direct RPM links from Fedora's Copr repositories. It retrieves the latest successful build for specified packages and generates download links for x86_64 or noarch architectures.
- Retrieves latest successful builds via Copr API.
- Extracts RPM links using Copr HTML directory parsing.
- Supports plain and JSON output formats.
copr2url [repos.ini] [fedora-target] [--json]repos.ini: Path to the INI file containing repository details (default:repos.ini).fedora-target: Fedora build target (e.g.,fedora-41-x86_64,fedora-rawhide-x86_64; default:fedora-rawhide-x86_64).--json: Outputs results in JSON format.
- Generate plain RPM links:
copr2url
- Use custom INI file and target:
copr2url myrepos.ini fedora-41-x86_64
- Output RPM links in JSON format:
copr2url repos.ini fedora-41-x86_64 --json
[cosmic-app-library]
owner = ryanabx
project = cosmic-epoch
package = cosmic-app-library
[cosmic-applets]
owner = ryanabx
project = cosmic-epoch
package = cosmic-applets- Install Go.
- Clone the repository.
- Build the binary:
go build -o copr2url main.go
- Run:
./copr2url [repos.ini] [fedora-target] [--json]