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 the YUM utility on CentOS 6 Linux and RedHat Enterprise Linux 6.

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

h2. Active Repositories

All YUM repositories for *Asterisk and non-commercial modules/dependencies* are available at [http://packages.asterisk.org/].

|| Repository || Definition || Contents ||
| asterisk-1.8 | centos-asterisk-1.8 | Asterisk 1.8 |
| asterisk-1.8-certified | centos-asterisk-1.8-certified | Certified Asterisk 1.8 |
| asterisk-11 | centos-asterisk-11 | Asterisk 11 |
| asterisk-12 | centos-asterisk-12 | Asterisk 12 |
| asterisk-13 | centos-asterisk-13 | Asterisk 13 |
| asterisk-current, asterisk-beta | centos-asterisk | Beta releases, Asterisk dependencies (including DAHDI), Asterisk sound packs |

{tip}
Some versions of Asterisk will have dependencies on packages that may not be typically available on all versions of CentOS/RHEL. Packages for these dependencies are available via the {{centos-asterisk}} repository; hence, it is always recommended to add the {{centos-asterisk}} repository definition.
{tip}

All YUM repositories for *DAHDI firmware and commercial modules* are available at [http://packages.digium.com/].

h2. Adding the repository

There are two ways to add a repository to your system:

# Manually, by downloading/copying the appropriate {{centos-asterisk*}} repository definition to {{/etc/yum.repos.d}}
# Automatically via the {{asterisknow-version}} RPM. This RPM will automatically add all supported Asterisk repos to YUM, as well as the repos from [http://packages.digium.com] for DAHDI firmware and commercial modules.
{code}
# rpm -Uvh http://packages.asterisk.org/centos/6/current/i386/RPMS/asterisknow-version-3.0.1-2_centos6.noarch.rpm
# yum update
{code}

h2. Installing

h3. Asterisk

Each major version of Asterisk has its own repository. Within the repository, there are many different packages available for Asterisk. Different packages will install Asterisk with different modules enabled, such as ODBC voicemail.

By default, the various Asterisk repositories are disabled. This allows you to have multiple Asterisk repository definitions installed on a single machine, and to choose which major version of Asterisk you'd like to install when running {{yum install}}.

{code:title=Installing Asterisk 11}
# yum install asterisk asterisk-configs --enablerepo=asterisk-11
{code}

h3. DAHDI

Packages for DAHDI are supplied via the {{centos-asterisk}} repository.

{code:title=Installing DAHDI}
# yum install dahdi-linux dahdi-tools libpri
{code}

{note}
If you are installing from local files and not using the repos installed above then it's worth noting that the {{dahdi-firmware}} files - among others - are hosted at [http://packages.digium.com] due to licensing. You may need to install the repository definitions from that location to obtain all of the packages needed for DAHDI.
{note}

h2. Upgrading

Upgrading can be done simply by running {{yum update}}:

{code}
# yum update
{code}

{numberedheadings}