# Tutorials

> Build, sign, serve, and update RPM and DEB repositories.

---

LLMS index: [llms.txt](/llms.txt)

---

These tutorials cover repository creation, signing, publication, and updates. Start with [Installation](/docs/start/install/) if you have not installed SOW.

<span id="which-one-first" data-td-print-local></span>


- [Migrate an Existing YUM Repository](/docs/tutorial/yum-migration/) — Replace the metadata generator for a flat RPM repository while preserving publication timestamps, signatures, and client caches.
- [Build a YUM Repository](/docs/tutorial/yum-repo/) — Create RPM architecture views, filter packages, set version limits, and configure DNF.
- [Build an APT Repository](/docs/tutorial/apt-repo/) — Create a DEB pool with by-hash indexes and configure an APT client.
- [Sign Your Repository](/docs/tutorial/signing/) — Sign metadata and RPM packages, then configure clients to verify signatures.
- [Serve Repositories](/docs/tutorial/serving/) — Publish to a filesystem target and serve it with Nginx.
- [Build the pigsty\-infra Repository](/docs/tutorial/infra-repo/) — Use both package formats and architectures, test installation, and maintain rolling channels, stable releases, and monthly snapshots.


<span id="conventions-used-here" data-td-print-local></span>

## Follow the examples

Run commands in order. Replace uppercase placeholders and `/path/to/` inputs with your values. Examples under `/srv` require a writable directory; you can substitute a path under your home directory.

The YUM and APT tutorials each start with a new workspace. To combine them, create the second Dist in the existing `pigsty` Repository and keep both Dist definitions in `sow.yml`.

Each tutorial shows how to check its result. For a command error or interrupted operation,
see [Troubleshooting](/docs/reference/troubleshooting/).

---

Section pages:

- [Build a YUM Repository](/docs/tutorial/yum-repo/): Create a managed RPM repository, apply membership policy, serve it, and configure dnf.
- [Migrate an Existing YUM Repository](/docs/tutorial/yum-migration/): Move a flat RPM repository to SOW while preserving client cache compatibility, package trust, and publication time.
- [Build an APT Repository](/docs/tutorial/apt-repo/): Create a managed DEB repository with by-hash indexes and configure an APT client.
- [Sign Your Repository](/docs/tutorial/signing/): Sign RPM and APT metadata, optionally sign RPM packages, and enable client verification.
- [Serve and Publish Repositories](/docs/tutorial/serving/): Serve a public Repository with Nginx and publish verified Generations to a filesystem target.
- [Build the pigsty-infra Repository](/docs/tutorial/infra-repo/): Turn an existing dual-architecture RPM and DEB package pool into an infra repository, then validate installs, roll updates, promote to Stable, and take monthly snapshots.
