Officially now Asterisk packages repository is gone (but packages are still on place). Asterisk installation manual gone as well. This post is some handy memo on Asterisk install from packages using YUM.
First, we need to install epel repository (in CentOS it’s available in CentOS Extras repo):
1 |
# yum -y install epel-release |
If installation fails, probably, CentOS Extras repo is disabled. Enable it or install manually.
CentOS and Red Hat Enterprise Linux 5.x
1 2 |
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm # rpm -Uvh epel-release-5*.rpm |
CentOS and Red Hat Enterprise Linux 6.x
1 2 |
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm # rpm -Uvh epel-release-6*.rpm |
CentOS and Red Hat Enterprise Linux 7.x
1 2 |
# wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # rpm -Uvh epel-release-7*.rpm |
Now let’s install Asterisk repository corresponding to your desired version (all packages can be found here):
1 2 |
# cd /etc/yum.repos.d # wget http://packages.asterisk.org/centos/centos-asterisk-13.repo |
Now install dnsmasq package and then asterisknow:
1 2 3 |
# yum -y install dnsmasq # wget http://packages.asterisk.org/centos/6/current/x86_64/RPMS/asterisknow-version-3.0.1-3_centos6.noarch.rpm # rpm -ivh asterisknow-version-3.0.1-3_centos6.noarch.rpm |
Install Asterisk and additional packages:
1 |
# yum install asterisk-core asterisk-addons-mysql asterisk-configs asterisk-odbc asterisk-sounds-core-en-alaw asterisk-sounds-extra-en-alaw --enablerepo=asterisk-13 --disablerepo=epel |
Also, DAHDI and LibPRI if needed:
1 |
# yum install dahdi-linux libpri |
Start Asterisk:
1 2 |
# service asterisk start Starting asterisk: [ OK ] |
Done!