Skip to content

repogen

repogen

repogen turns a directory of packages into a static, signed package repository that any web server can host. It scans the directory, detects each package type and writes the metadata that APT, apk, pacman, Homebrew and systemd-sysupdate read. It runs on Linux and is for people who serve packages from plain web or object storage.

Install repogen → Read the usage guide

Install repogen covers the release install and the build from source.

What repogen gives you

  • Five repository formats


    Debian/APT, Alpine/APK, Arch Linux/pacman, Homebrew bottles and systemd-sysext images. repogen finds each package by its magic bytes, with the file name as a fallback.

  • Signed output


    GPG signs Debian, pacman and sysext repositories, and RSA signs Alpine. Unsigned output stays possible.

  • Incremental updates


    Incremental mode reads the published metadata and adds new packages without removing old ones. Sysext retention is opt-in: by default nothing is pruned.

  • Static output


    The result is plain files. Serve it from any web server or object store, or publish it to Cloudflare R2 with the publish-to-r2 GitHub action.

Pre-release

repogen is pre-release software. RPM generation was removed in v0.7.0.

Start here

  • 01 Install

    Install repogen from a release or build it from source.

  • 02 Usage

    Generate, sign and update a repository.

  • 03 Client setup

    Point APT, apk, pacman, Homebrew and systemd-sysupdate at the result.

  • 04 Publish to R2

    Publish a repository to Cloudflare R2 from GitHub Actions.

  • 05 Commands

    Look up every flag of repogen generate.

  • 06 Build from source

    Build repogen, run the checks and build this site.