Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{numberedheadings}

{toc}

h1. Introduction

Installing a binary distribution of Asterisk makes it easier to maintain your system. Using the package management tools that are included with your Linux distribution, you can install and update software without manually managing dependencies (libraries and utilities on which applications rely).

Currently Asterisk is available for automated binary installation using APT for Debian and Ubuntu or YUM utility on CentOS 5 Linux and for RedHat Enterprise Linux 5.

h1. APT (Debian / Ubuntu)
The goal with the deb repositories is simply to provide the latest Asterisk versions, such as Asterisk 1.8, for older versions of distributions where distribution policy prohibits incorporating our latest version.  As of now, we have Asterisk packages available for the following distribution versions:

 * Debian 6.0 (squeezysqueeze)
 * Ubuntu 10.04 (lucid)
 * Ubuntu 10.10 (maverick)
 * Ubuntu 11.04 (natty)

h2. Prerequisites

h3. Importing the public key
{code}
$ sudo apt-key adv --keyserver subkeys.pgp.net --recv-keys 175E41DF
{code}

h2. Adding the release branch

h3. Adding the repository
{code}
$ sudo add-apt-repository "deb http://packages.asterisk.org/deb `lsb_release -cs` main"
{code}

h2. Adding the proposed branch (Optional)
The proposed branch includes updates which are waiting to be moved into the release branch after some testing. They may never reach recommended or they may be replaced with a more recent update. Enabling this is reasonable if you want to participate in testing minor updates, or know that your specific problem has been solved here but the package hasn't reached recommended yet.

h3. Adding the repository
{code} 
$ sudo add-apt-repository "deb http://packages.asterisk.org/ubuntu `lsb_release -cs`-proposed main" 
{code} 

h2. Installing Asterisk

h3. Update APT
{code}
$ sudo apt-get update
{code}

h3. Asterisk
{code}
$ sudo apt-get install asterisk-1.8
{code}

h3. DAHDI
{code}
$ sudo apt-get install asterisk-dahdi
{code}

h1. YUM (CentOS / Red Hat)

h2. Prerequisites

h2. Adding the repository

{code}
$ vi /etc/yum.repos.d/centos-asterisk.repo
{code}

{code}
[asterisk-current]
name=CentOS-$releasever - Asterisk - Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
{code}

{code}
$ vi /etc/yum.repos.d/centos-digium.repo
{code}

{code}
[digium-current]
name=CentOS-$releasever - Digium - Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
{code}

h2. Installing Asterisk

h3. Asterisk
{code}
# yum install asterisk16
{code}

h3. DAHDI
{code}
# yum install dahdi-linux dahdi-tools libpri
{code}

{numberedheadings}