aptly package is available in Debian as well as Ubuntu.
If you would like to install a upstream release of aptly with a different version than then Debian / Ubuntu package, aptly can be installed
by adding a new repository to /etc/apt/sources.list.d
:
$ echo "deb [signed-by=/etc/apt/keyrings/aptly.asc] http://repo.aptly.info/ squeeze main" | sudo tee /etc/apt/sources.list.d/aptly.list
And importing key that is used to sign the release:
For releases older than Debian 12 and Ubuntu 22.04, create the directory first:
$ sudo mkdir -p /etc/apt/keyrings; sudo chmod 755 /etc/apt/keyrings
Download and install key:
$ wget -O /etc/apt/keyrings/aptly.asc https://www.aptly.info/pubkey.txt
After that you can install aptly as any other software package:
# apt-get update && apt-get install aptly
Please don't worry about squeeze
part in repo name: aptly package should work on Debian squeeze+,
Ubuntu 10.0+. Package contains aptly binary, man page and bash completion.
If you would like to use the CI Builds (formerly known as nightly) to test the latest development version of aptly (unstable!), use the following APT source:
deb [signed-by=/etc/apt/keyrings/aptly.asc] http://repo.aptly.info/ci DIST mainWhere DIST needs to be changed to the distribution: buster / bullseye / bookworm (Debian) or focal / jammy / noble (Ubuntu).
Mac OS X: Installation using Homebrew:
$ brew install aptly
Releases for binary distributions (depend almost only on libc
) for Debian, CentOS, MacOS X &
FreeBSD are available.
Download archive, it contains binary executable:
$ tar xzf aptly_1.5.0_linux_amd64.tar.gz $ aptly_1.5.0_linux_amd64/aptly version aptly version: 1.5.0
Bash completion & manual page would be part of the archive as well.
If you have Go environment set up (go 1.10+ required), you can build aptly from source by cloning it and building:
$ mkdir -p $GOPATH/src/github.com/aptly-dev/aptly $ git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly $ cd $GOPATH/src/github.com/aptly-dev/aptly $ make install # aptly binary would be built in $GOPATH/bin/ $ aptly