Skip to content

Software Object Warehouse

Build package repositoriesPublish what changed

Build YUM and APT repositories from local RPM and DEB files. Index an existing directory in place with sow create, or let SOW maintain a standard repository that selects packages, signs metadata, keeps snapshots, and publishes updates.

SOW 0.9.0 · Linux + macOS · RPM + DEB · Apache-2.0

Two kinds of repository

Simple or standard

A simple repository is a package directory indexed in place. A standard repository is maintained by SOW, with package selection, build history, and publication.

01 / CREATE

Index a package directory

◇ Point SOW at a directory of packages

  • sow create indexes top-level RPM and DEB files in place
  • sow prune removes superseded RPM versions and updates repodata/
  • Keeps current and previous RPM metadata after updates

Serve the resulting directory with a static HTTP server.

create.sh
$ sow create /srv/repo --jobs 8
$ sow prune /srv/repo --dry-run
$ python3 -m http.server 8080 --bind 127.0.0.1 --directory /srv/repo

03 / READY TO RUN

One executable

◇ The same CLI on macOS and Linux

  • Linux and macOS archives for amd64 and arm64
  • RPM and DEB installation packages for Linux
  • Built-in package parsing and metadata generation

Run SOW as a command. Standard repositories keep their state in an embedded SQLite database.

04 / INCREMENTAL

Publish repository updates

◇ Publish to a filesystem or Cloudflare R2 target

  • sow changes lists file changes between local builds
  • Publication compares the current build with the target’s last publication
  • Uploads changed files and records the result

Configure a target in sow.yml, then run sow publish TARGET.

publish.sh
$ sow changes -r pgsql
$ sow publish prod
$ sow status -r pgsql

Operating model

Build, check, publish

Keep package selection, local builds, and remote publication separate.

01

Rebuild local indexes

A simple repository is rebuilt from the directory each time. Run sow create after adding packages, or sow prune to remove old RPM versions.

02

Inspect the current build

A standard repository records package selections and completed builds. Run sow status to check whether a build is needed.

03

Check before publication

Run sow check to validate a standard repository. Run sow publish TARGET to update a configured target.

Common questions

Choose a workflow

The same SOW executable builds both kinds of repository.

Should I start with a simple or a standard repository?

Use a simple repository to index an existing package directory. Use a standard repository to select packages per distribution, apply retention rules, sign metadata, and publish updates.

Can I replace an existing createrepo_c workflow?

Yes, for repositories that use RPM XML metadata. Preserve the publication timestamp with --metadata-timestamp and sign the final index if clients require it. See the YUM migration guide for the steps and supported metadata formats.

Does RPM signing also sign the repository index?

--sign-with signs unsigned RPM packages. In a simple repository, sign repomd.xml separately after the final metadata build. A standard repository signs metadata as configured in sow.yml. See Signing for both workflows.

Can SOW handle RPM and DEB packages together?

Yes. A simple repository can contain both RPM and DEB packages. In a standard repository, each Dist has one format. One repository can contain multiple RPM and DEB Dists.

Does SOW need a daemon or database service?

No. SOW runs as a command and generates static files. Standard repositories use a local SQLite database. Serve the repository root, which contains pool/ and dists/, with a static HTTP server.

Where can I publish a standard repository?

Publish to a local or mounted filesystem, or Cloudflare R2. Each target records its own checkpoint. sow publish uses that checkpoint to select the files for the next update.

Build your first repositoryAfter installation, run sow create DIR to index your package directory.