aptly - Debian repository management tool https://www.aptly.info/
 
 
 
 
Go to file
André Roth cf3841e35c
Merge pull request #1425 from aptly-dev/fix/debian-compliance
postrm: remove aptly-api user and home directory on purge
2025-01-24 00:49:15 +01:00
.github ci: more relaxed aptly upload 2025-01-11 15:58:10 +01:00
_man Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00
api improve doc 2024-12-21 20:23:52 +01:00
aptly write commented json default config 2024-12-11 10:40:44 +01:00
azure Switch to google/uuid module 2025-01-11 23:18:50 +01:00
cmd fix man page 2024-12-21 22:32:50 +01:00
completion.d Command to replace the whole staged source list added. 2024-11-01 17:48:03 +01:00
console Fix: Implement golangci-lint suggestions 2023-09-21 11:25:18 +02:00
context add test and improve config error messages 2024-12-11 12:02:52 +01:00
database Switch to google/uuid module 2025-01-11 23:18:50 +01:00
deb Merge pull request #1422 from aptly-dev/fix/empty-mirror-snapshot 2025-01-13 12:36:01 +01:00
debian postrm: remove aptly-api user and home directory on purge 2025-01-22 21:48:02 +01:00
docs swagger: document async 2024-12-11 10:40:44 +01:00
files Switch to google/uuid module 2025-01-11 23:18:50 +01:00
http add shutdown context unit test 2024-11-09 15:34:35 -06:00
man update man page 2024-12-24 19:02:38 +01:00
pgp cleanup gpg keys 2024-10-04 18:46:40 +02:00
query Fix linter list and fix errors discovered by new staticcheck 2019-01-20 00:01:17 +03:00
s3 update or downgrade go modules to match debian versions 2024-09-24 10:14:39 +02:00
swift fix typo 2024-04-11 19:40:25 +02:00
system add test: snapshot empty mirror 2025-01-11 20:00:42 +01:00
systemd Bump Go versions for Travis, fix tests 2019-07-04 00:16:12 +03:00
task queue sync calls 2024-06-15 19:18:14 +02:00
utils update documentation and man page 2024-12-11 12:02:52 +01:00
.dockerignore debian: add lintian 2024-11-17 14:10:30 +01:00
.flake8 system tests: use repository mirrors on S3 for reproducibility 2024-02-05 13:04:45 +01:00
.gitignore docs: improve swagger 2024-12-11 10:40:43 +01:00
.golangci.yml update golangci-lint and replace deprecated calls to io/ioutil 2022-12-12 10:21:39 +01:00
AUTHORS fix AUTHORS for man page 2024-12-21 21:34:46 +01:00
CODE_OF_CONDUCT.md update code of conduct to use github discussions 2024-08-03 00:14:26 +02:00
CONTRIBUTING.md improve doc 2024-12-21 21:29:26 +01:00
LICENSE Update license to mention that there are many contributors. 2015-07-04 13:06:58 +03:00
Makefile update README 2025-01-11 15:58:10 +01:00
README.rst update README 2025-01-11 21:33:40 +01:00
codecov.yml Fix CodeCov Config has two targets and thresholds 2023-03-13 08:20:18 +01:00
go.mod Merge pull request #1423 from mikelolasagasti/google-uuid 2025-01-11 23:56:23 +01:00
go.sum go mod tidy 2025-01-12 00:05:00 +01:00
main.go write commented json default config 2024-12-11 10:40:44 +01:00
main_test.go write commented json default config 2024-12-11 10:40:44 +01:00
mem.gp gnuplot script. 2014-03-03 20:59:37 +04:00

README.rst

.. image:: https://github.com/aptly-dev/aptly/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/aptly-dev/aptly/actions

.. image:: https://codecov.io/gh/aptly-dev/aptly/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/aptly-dev/aptly

.. image:: https://badges.gitter.im/Join Chat.svg
    :target: https://matrix.to/#/#aptly:gitter.im

.. image:: https://goreportcard.com/badge/github.com/aptly-dev/aptly
    :target: https://goreportcard.com/report/aptly-dev/aptly

aptly
=====

Aptly is a swiss army knife for Debian repository management.

.. image:: http://www.aptly.info/img/aptly_logo.png
    :target: http://www.aptly.info/

Documentation is available at `http://www.aptly.info/ <http://www.aptly.info/>`_. For support please use
open `issues <https://github.com/aptly-dev/aptly/issues>`_ or `discussions <https://github.com/aptly-dev/aptly/discussions>`_.

Aptly features:

* make mirrors of remote Debian/Ubuntu repositories, limiting by components/architectures
* take snapshots of mirrors at any point in time, fixing state of repository at some moment of time
* publish snapshot as Debian repository, ready to be consumed by apt
* controlled update of one or more packages in snapshot from upstream mirror, tracking dependencies
* merge two or more snapshots into one
* filter repository by search query, pulling dependencies when required
* publish self-made packages as Debian repositories
* REST API for remote access

Any contributions are welcome! Please see `CONTRIBUTING.md <CONTRIBUTING.md>`_.

Installation
=============

Aptly can be installed on several operating systems.

Debian / Ubuntu
----------------

Aptly is provided in the following debian packages:

* **aptly**: Includes the main Aptly binary, man pages, and shell completions
* **aptly-api**: A systemd service for the REST API, using the global /etc/aptly.conf
* **aptly-dbg**: Debug symbols for troubleshooting

The packages can be installed on official `Debian <https://packages.debian.org/search?keywords=aptly>`_ and `Ubuntu <https://packages.ubuntu.com/search?keywords=aptly>`_ distributions.

Upstream Debian Packages
~~~~~~~~~~~~~~~~~~~~~~~~~

If a newer version (not available in Debian/Ubuntu) of aptly is required, upstream debian packages (built from git tags) can be installed as follows:

Install the following APT key (as root)::

    wget -O /etc/apt/keyrings/aptly.asc https://www.aptly.info/pubkey.txt

Define Release APT sources in ``/etc/apt/sources.list.d/aptly.list``::

    deb [signed-by=/etc/apt/keyrings/aptly.asc] http://repo.aptly.info/release DIST main

Where DIST is one of: ``buster``, ``bullseye``, ``bookworm``, ``focal``, ``jammy``, ``noble``

Install aptly packages::

    apt-get update
    apt-get install aptly
    apt-get install aptly-api  # REST API systemd service

CI Builds
~~~~~~~~~~

For testing new features or bugfixes, recent builds are available as CI builds (built from master, may be unstable!) and can be installed as follows:

Define CI APT sources in ``/etc/apt/sources.list.d/aptly-ci.list``::

    deb [signed-by=/etc/apt/keyrings/aptly.asc] http://repo.aptly.info/ci DIST main

Where DIST is one of: ``buster``, ``bullseye``, ``bookworm``, ``focal``, ``jammy``, ``noble``

Note: same gpg key is used as for the Upstream Debian Packages.

Other Operating Systems
------------------------

Binary executables (depends almost only on libc) are available on `GitHub Releases <https://github.com/aptly-dev/aptly/releases>`_ for:

- macOS / darwin (amd64, arm64)
- FreeBSD (amd64, arm64, 386, arm)
- Generic Linux (amd64, arm64, 386, arm)

Integrations
=============

Vagrant:

-   `Vagrant configuration <https://github.com/sepulworld/aptly-vagrant>`_ by
    Zane Williamson, allowing to bring two virtual servers, one with aptly installed
    and another one set up to install packages from repository published by aptly

Docker:

-    `Docker container <https://github.com/mikepurvis/aptly-docker>`_ with aptly inside by Mike Purvis
-    `Docker container <https://github.com/urpylka/docker-aptly>`_ with aptly and nginx by Artem Smirnov

With configuration management systems:

-   `Chef cookbook <https://github.com/hw-cookbooks/aptly>`_ by Aaron Baer
    (Heavy Water Operations, LLC)
-   `Puppet module <https://github.com/alphagov/puppet-aptly>`_ by
    Government Digital Services
-   `Puppet module <https://github.com/tubemogul/puppet-aptly>`_ by
    TubeMogul
-   `SaltStack Formula <https://github.com/saltstack-formulas/aptly-formula>`_ by
    Forrest Alvarez and Brian Jackson
-   `Ansible role <https://github.com/aioue/ansible-role-aptly>`_ by Tom Paine

CLI for aptly API:

-   `Ruby aptly CLI/library <https://github.com/sepulworld/aptly_cli>`_ by Zane Williamson
-   `Python aptly CLI (good for CI) <https://github.com/TimSusa/aptly_api_cli>`_ by Tim Susa

GUI for aptly API:

-   `Python aptly GUI (via pyqt5) <https://github.com/chnyda/python-aptly-gui>`_ by Cedric Hnyda

Scala sbt:

-   `sbt aptly plugin <https://github.com/amalakar/sbt-aptly>`_ by Arup Malakar

Molior:

-   `Molior Debian Build System <https://github.com/molior-dbs/molior>`_ by André Roth