Installing from repo:
---------------------

    sudo sh -c 'cat >/etc/apt/sources.list.d/osso-ppa-osso.list' <<EOF
deb http://ppa.osso.nl/debian jessie osso
deb-src http://ppa.osso.nl/debian jessie osso
EOF

    sudo apt-get update
    # (yields: public key is not available: NO_PUBKEY BEAD51B6B36530F5..)

    #wget -qO- https://ppa.osso.nl/support+ppa@osso.nl.gpg | sudo apt-key add -
    # (yields: OK)
    #apt-key export BEAD51B6B36530F5 --no-armor | sha256sum | sed -e 's/\(......\)/\1 /g'
    # 7dfce2 892089 75df32 0d2e0a 98ab29 bb0651 725961 1ac2a7 27f06e 5e3625 0e39   -

    wget -qO /etc/apt/trusted.gpg.d/osso-ppa-2014.gpg http://ppa.osso.nl/osso-ppa-2014.gpg
    sha256sum /etc/apt/trusted.gpg.d/osso-ppa-2014.gpg | sed -e 's/\(......\)/\1 /g;s/  .*//'
    # yields: 6c48a2 fe87b2 b491ad a05305 fc01ec ba0f9a ccc78b 1ff127 1090e5 e2b265 6e54

    sudo apt-get update

    sudo apt-get install asterisk
    cd `mktemp -d`
    apt-get source asterisk


Using the new aptly:
--------------------

    aptly repo list [-raw]
    aptly repo create -comment='SIPp' -component=sipp -distribution=precise sipp/precise
    aptly repo add sipp/precise PARTIAL_PATH...
    aptly-repo-add-alldist sipp PARTIAL_PATH...

    aptly snapshot list [-raw]

    VER=$(( $(aptly snapshot list -raw | sed -e 's/.*-//' | uniq | sort -n | tail -n1) + 1))
    aptly repo list -raw | while read x; do aptly snapshot create $x-$VER from repo $x || exit 1; done
    aptly-publish-version $VER

    aptly snapshot list -raw | grep -v -- '-'$VER'$' | while read x; do aptly snapshot drop $x || exit 1; done


Missing aptly features:
-----------------------

    https://github.com/aptly-dev/aptly/issues/170 -- changelog support