OpenCrate

Installing OpenCrate from a Linux repository

With a repository, your normal system updates (apt upgrade, dnf upgrade, your AUR helper) also update OpenCrate. Both x86-64 and ARM64 (aarch64) are available.

Debian, Ubuntu, Linux Mint, Pop!_OS (apt)

sudo install -d -m 0755 /usr/share/keyrings
curl -fsSL https://github.com/Vasilakious/OpenCrate/releases/download/apt-repo/opencrate-archive-keyring.gpg \
  | sudo tee /usr/share/keyrings/opencrate-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/opencrate-archive-keyring.gpg] https://github.com/Vasilakious/OpenCrate/releases/download/apt-repo/ ./" \
  | sudo tee /etc/apt/sources.list.d/opencrate.list
sudo apt update && sudo apt install opencrate

Fedora, RHEL-compatible (dnf)

sudo curl -fsSL -o /etc/yum.repos.d/opencrate.repo https://vasilakious.github.io/OpenCrate/rpm/opencrate.repo
sudo dnf install opencrate

The repository metadata is signed (repo_gpgcheck=1); dnf asks you once to accept the OpenCrate key.

Arch Linux, Manjaro, EndeavourOS (AUR)

yay -S opencrate-bin      # or paru -S opencrate-bin

opencrate-bin repackages the official .deb from the GitHub release and checks its SHA-256.

Other ways

Removing the repository


For maintainers: publishing the repositories

The workflow .github/workflows/linux-repos.yml runs after the release build finishes (or by hand with a tag). It:

  1. downloads the release’s .deb and .rpm files (x86-64 and arm64),
  2. apt: builds a flat repository (Packages, Release, signed InRelease and Release.gpg) with scripts/linux-repo.js apt and uploads it, with the packages, to a rolling pre-release named apt-repo (older packages are removed from it);
  3. dnf: runs createrepo_c with --baseurl pointing at the release downloads, signs repomd.xml and publishes the metadata and opencrate.repo to GitHub Pages under /rpm (the packages themselves stay on the release, so Pages’ size limits do not matter);
  4. AUR: writes PKGBUILD and .SRCINFO with scripts/linux-repo.js aur and pushes them to aur.archlinux.org/opencrate-bin.git.

One-time setup

  1. Signing key — create a key used only for the repositories:
    gpg --quick-gen-key "OpenCrate repositories <you@example.com>" ed25519 sign 5y
    gpg --armor --export-secret-keys "OpenCrate repositories" > repo-key.asc
    

    Add the contents of repo-key.asc as the repository secret LINUX_REPO_GPG_KEY (and the passphrase, if any, as LINUX_REPO_GPG_PASSPHRASE). Delete repo-key.asc afterwards and keep an offline backup of the key: changing it later means every user has to import the new key.

  2. GitHub Pages — Settings → Pages → Deploy from a branch → gh-pages / root. The first workflow run creates the branch.
  3. AUR (optional) — create the opencrate-bin package on aur.archlinux.org with an SSH key, and add the private key as AUR_SSH_PRIVATE_KEY. Without it, the workflow keeps the generated PKGBUILD as a downloadable artifact.

Testing locally

node scripts/linux-repo.js apt dist/*.deb /tmp/apt-test
node scripts/linux-repo.js aur 1.6.3 <sha256-amd64> <sha256-arm64> /tmp/aur-test