Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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 RedHat Enterprise Linux 5.

h1. APT (Debian / Ubuntu)
{warning:title=Warning}
As of March, 2012 the Debian / Ubuntu packages are unmaintained.  Please consider using your local operating system Asterisk packages.
{warning}


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 Squeeze (stable)
 * Debian Wheezy (testing)
 * Ubuntu Lucid (10.04)
 * Ubuntu Maverick (10.10)
 * Ubuntu Natty (11.04)
 * Ubuntu Oneiric (11.11)

h2. Prerequisites

h3. Dependencies
{code}
$ sudo apt-get install python-software-properties
{code}

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

{note:title=Note}
If you are having problems downloading the key from pgp.mit.edu, try the following:
{code}
$ wget http://packages.asterisk.org/keys/175E41DF.pub -O - | sudo apt-key add -
{code}
{note}


h2. Adding the release branch

h3. Adding the repository
{code}
$ sudo add-apt-repository "deb http://packages.asterisk.org/deb `lsb_release -cs` main"
$ sudo add-apt-repository "deb-src 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/deb `lsb_release -cs`-proposed main" 
$ sudo add-apt-repository "deb-src http://packages.asterisk.org/deb `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
All DAHDI related components of Asterisk have been moved to a separate package.  For example if you want to use app_meetme.so, then you need to install this package.
{code}
$ sudo apt-get install asterisk-dahdi
{code}

h2. Upgrading Asterisk

h3. Asterisk
{code}
$ sudo apt-get update
$ sudo apt-get upgrade
{code}

{note:title=Note}
Due to a bug in asterisk-1.8.3 of the packages, upgrading to later versions of Asterisk will not work.  Unfortunately you will need to purge the previous version and install asterisk again.

{code}
$ sudo apt-get purge asterisk*
$ sudo apt-get install asterisk
{code}
{note}

h1. YUM (CentOS 5 / Red Hat Enterprise Linux 5)

h2. Prerequisites

h2. Adding the repository

{code}
# rpm -Uvh http://packages.asterisk.org/centos/5/current/i386/RPMS/asterisknow-version-1.7.1-3_centos5.noarch.rpm
# yum update
{code}

h2. Installing

h3. Asterisk

h4. 1.8
{code}
# yum install asterisk asterisk-configs --enablerepo=asterisk-1.8
{code}

h4. 10
{code}
# yum install asterisk asterisk-configs --enablerepo=asterisk-10
{code}

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

h2. Upgrading
{code}
# yum update
{code}

{numberedheadings}