Skip to content

SOW Docs

Build and maintain YUM and APT repositories from RPM and DEB files with one self-contained binary.

SOW builds YUM and APT repositories from RPM and DEB files. Point it at a directory of packages and you get a repository that dnf and apt can install from. Or let SOW maintain the repository for you over time: which packages each distribution gets, how many versions to keep, signatures, build history, and incremental publication to a web server or object storage.

These docs cover SOW 0.9.0. See the release notes for what changed and the upgrade guide for an existing workspace.

Why SOW

Running your own package repository usually means one tool per format, such as createrepo_c for RPM and reprepro or aptly for DEB, held together by scripts that copy files, prune old versions, sign indexes, and upload the result. Those scripts tend to break in the same three places:

  • Duplicated packages. A noarch or all package is copied into every architecture directory of every distribution that needs it. Storage grows and the copies drift apart.
  • Broken updates. Upload a new index before its packages arrive, or delete old packages while clients still cache the old index, and dnf or apt fails with 404s or checksum errors.
  • No history. When an update breaks clients, nobody can say what the repository contained before, or which change caused it.

SOW replaces that toolchain with one executable for Linux and macOS:

  • It parses RPM and DEB packages and writes YUM and APT metadata itself. It does not need createrepo_c, dpkg-scanpackages, or reprepro.
  • It stores each package once per repository. Each distribution and architecture gets its own index, and all of them point at that one copy.
  • It records every build, so you can list what changed, verify the whole tree, and publish only the changed files: packages first, indexes last, old files kept until client caches expire.

Two kinds of repository

A simple repository is a directory you already have. sow create DIR writes indexes next to the packages, with no configuration file and no database. Use it to replace a createrepo_c script or to make an offline package bundle installable.

sow create /srv/repo

A standard repository is one that SOW maintains for you. You create it in a workspace, declare package sets (Dists) such as el9 or bookworm, and add packages to them; SOW applies filters and version limits, builds and signs the indexes, records each build, and publishes updates. Use it for a repository you maintain for months.

sow init /srv/sow && cd /srv/sow
sow repo new local
sow dist new el9 --format rpm
sow add /path/to/packages/*.rpm
sow check

You can start with a simple repository and move to a standard one later; Core concepts compares the two in detail.

Start here

You want to Read
Make a directory of packages installable now Quick start
Replace an existing createrepo_c workflow Migrate an existing YUM repository
Maintain a repository with several distributions Your first standard repository
Serve a repository to other hosts or a CDN Serve and publish
Fix an error or an interrupted command Troubleshooting

How the docs are organized

  • Get Started — Install SOW, build a repository in five minutes, and learn the model.
  • Tutorials — Complete walkthroughs for YUM, APT, signing, serving, and migration.
  • Features — How each mechanism works and why it is built that way.
  • Commands — Every command’s options, output, and exit codes.
  • Reference — sow.yml fields, file layout, JSON output, and compatibility.
  • Design Records — Architecture decisions and their history.

Get Started

Install SOW, turn a directory into a simple repository in five minutes, then build a standard repository.

Tutorials

Find the walkthrough for your situation: a new YUM or APT repository, a createrepo_c migration, signing, serving, or a multi-channel repository.

Features

The repository-maintenance problems SOW solves, what simple and standard repositories each provide, and which page explains each mechanism.

Reference

Look up sow.yml fields, package references, file paths, exit codes, JSON fields, platform support, and fixes for common errors.

Commands

Every SOW command at a glance, plus the rules they share: workspace discovery, repository and Dist selection, locking, JSON output, and exit codes.

Table reader