Debian/Ubuntu: aptly package is available in Debian as well as Ubuntu. If you would like
to install aptly on older versions of Debian / Ubuntu or to stay on the bleeding edge, aptly could be installed
by adding new repository to /etc/apt/sources.list
:
deb http://repo.aptly.info/ squeeze main
And importing key that is used to sign the release either from keyserver.ubuntu.com:
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A0546A43624A8331
or by downloading it (GPG key):
$ wget -qO - https://www.aptly.info/pubkey.txt | sudo apt-key add -
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 nightly (unstable) builds of aptly, add following line
to /etc/apt/sources.list
:
deb http://repo.aptly.info/ nightly main
Mac OS X: Installation using Homebrew:
$ brew install aptly
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