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
deb http://repo.aptly.info/ squeeze main
And importing key that is used to sign the release either from pool.sks-keyservers.net:
# sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys ED75B5A4483DA07C
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
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.3.0_linux_amd64.tar.gz $ aptly_1.3.0_linux_amd64/aptly version aptly version: 1.3.0
Bash completion & manual page would be part of the archive as well.
If you have Go environment set up (go 1.6+ 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