Skip to content

Aptly

Aptly is a swiss army knife for Debian repository management.

install new version

install new version 1.6.1



gpg keys

TODO: how to create and assign key

Aptly Repository

An Aptly repository is a collection of .deb packages that you create and manage locally using Aptly. Think of it like a staging area — it's where you add, update, or remove packages.

Repositories type

  • local: custom repos.
  • mirror: mirror official repos

Aptly Snapshot

A snapshot is a frozen, read-only version of a repository (local or mirror) at a specific point in time. It’s like taking a picture of the repository.


Serve

aptly serve

Using nginx

Nginx (pronounced "engine-x") is a high-performance web server

server {
    listen 80;
    server_name myrepo.example.com;

    root /home/user/.aptly/public;

    location / {
        autoindex on;
    }
}

Add to sources.list

1
2
3
deb http://myrepo.example.com/ jammy main
# Without sign key
deb [trusted=yes] http://myrepo.example.com/ jammy main