← All notes

copr-cli Basics

Go to https://copr.fedorainfracloud.org/api/ and paste everything into ~/.config/copr.

List projects:

[ecomaikgolf@laptop ~/]$ copr-cli list
Name: typst
  Description: A new markup-based typesetting system that is powerful and easy to learn.

No downstream patches, built with `cargo build -p typst-cli --release --all-features --locked`, respecting upstream `Cargo.lock`
  Repo(s):
    [...]

Name: lf
  Description: lf is a terminal file manager written in Go with a heavy inspiration from ranger file manager.

No downstream patches, built with `env CGO_ENABLED=0 go build -ldflags="-s -w"`
  Repo(s):
    [...]

Rebuild package from a project:

[ecomaikgolf@laptop ~/]$ copr-cli build-package --name tinymist typst
sBuild was added to typst:
  https://copr.fedorainfracloud.org/coprs/build/8458063
Created builds: 8458063
Watching build(s): (this may be safely interrupted)
  11:31:00 Build 8458063: pending

List builds from a project:

[ecomaikgolf@laptop ~/]$ copr-cli list-builds typst 
The default setting will be changed from text-row to json in the following releases
8449478 tinymist  succeeded
8399388 tinymist  succeeded
8370042 tinymist  succeeded
8330412 tinymist  succeeded
8267809 tinymist  succeeded
8167746 typst succeeded
8164528 tinymist  succeeded
8164527 typst succeeded
8164124 typst succeeded
8163785 typst succeeded

List packages from a project:

[
    {
        "auto_rebuild": true,
        "id": 2607571,
        "latest_build": null,
        "latest_succeeded_build": null,
        "name": "typst",
        "ownername": "ecomaikgolf",
        "projectname": "typst",
        "source_dict": {
            "clone_url": "https://github.com/ecomaikgolf/typst-copr",
            "committish": "main",
            "source_build_method": "rpkg",
            "spec": "",
            "subdirectory": "",
            "type": "git"
        },
        "source_type": "scm"
    }
    ,
    {
        "auto_rebuild": true,
        "id": 2607634,
        "latest_build": null,
        "latest_succeeded_build": null,
        "name": "tinymist",
        "ownername": "ecomaikgolf",
        "projectname": "typst",
        "source_dict": {
            "clone_url": "https://github.com/ecomaikgolf/tinymist-copr",
            "committish": "master",
            "source_build_method": "rpkg",
            "spec": "",
            "subdirectory": "",
            "type": "git"
        },
        "source_type": "scm"
    }
]