1. 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.
2. YUM (CentOS 6 / Red Hat Enterprise Linux 6)
2.1. 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 |
All YUM repositories for DAHDI firmware and commercial modules are available at http://packages.digium.com/.
2.2. 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.
2.3. Installing
2.3.1. 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
.
2.3.2. DAHDI
Packages for DAHDI are supplied via the centos-asterisk
repository.
2.4. Upgrading
Upgrading can be done simply by running yum update
: