<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/2041/1/7/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages">Asterisk Packages</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://wiki.asterisk.org/wiki/display/~pabelanger">Paul Belanger</a>
    </h4>
        <br/>
                         <h4>Changes (6)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Welcome to Asterisk Packages.  Here you can get the latest available Asterisk releases for every supported version of Debian and Ubuntu. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">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). <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Currently Asterisk is available for automated binary installation using the *apt* for Debian and Ubuntu or *yum* utility on CentOS 5 Linux and for RedHat Enterprise Linux 5. <br> <br></td></tr>
            <tr><td class="diff-unchanged" >{toc} <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h1. Debian / Ubuntu <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h1. APT (Debian / Ubuntu) <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Prerequisites <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >$ sudo apt-get install dahdi <br>{code} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;"> <br>h1. YUM (CentOS / Red Hat) <br> <br>h2. Prerequisites <br> <br>h2. Adding the repository <br> <br>{code} <br>$ vi /etc/yum.repos.d/centos-asterisk.repo <br>{code} <br> <br>{code} <br>[asterisk-tested] <br>name=CentOS-$releasever - Asterisk - Tested <br>baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/ <br>enabled=0 <br>gpgcheck=0 <br>#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium <br> <br>[asterisk-current] <br>name=CentOS-$releasever - Asterisk - Current <br>baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/ <br>enabled=1 <br>gpgcheck=0 <br>#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium <br>{code} <br> <br>{code} <br>$ vi /etc/yum.repos.d/centos-digium.repo <br>{code} <br> <br>{code} <br>[digium-tested] <br>name=CentOS-$releasever - Digium - Tested <br>baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/ <br>enabled=0 <br>gpgcheck=0 <br>#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium <br> <br>[digium-current] <br>name=CentOS-$releasever - Digium - Current <br>baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/ <br>enabled=1 <br>gpgcheck=0 <br>#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium <br>{code} <br> <br>h2. Installing Asterisk <br> <br>h3. Asterisk <br># yum install asterisk16 <br> <br>h3. DAHDI <br># yum install dahdi-linux dahdi-tools libpri <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>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).</p>

<p>Currently Asterisk is available for automated binary installation using the <b>apt</b> for Debian and Ubuntu or <b>yum</b> utility on CentOS 5 Linux and for RedHat Enterprise Linux 5.</p>

<div>
<ul>
    <li><a href='#AsteriskPackages-APT%28Debian%2FUbuntu%29'>APT (Debian / Ubuntu)</a></li>
<ul>
    <li><a href='#AsteriskPackages-Prerequisites'>Prerequisites</a></li>
    <li><a href='#AsteriskPackages-Addingtherepository'>Adding the repository</a></li>
<ul>
    <li><a href='#AsteriskPackages-Importtopublickey'>Import to public key</a></li>
    <li><a href='#AsteriskPackages-Addreleasebranch'>Add release branch</a></li>
    <li><a href='#AsteriskPackages-UpdateAPT'>Update APT</a></li>
</ul>
    <li><a href='#AsteriskPackages-InstallingAsterisk'>Installing Asterisk</a></li>
<ul>
    <li><a href='#AsteriskPackages-Asterisk'>Asterisk</a></li>
    <li><a href='#AsteriskPackages-DAHDI'>DAHDI</a></li>
</ul>
</ul>
    <li><a href='#AsteriskPackages-YUM%28CentOS%2FRedHat%29'>YUM (CentOS / Red Hat)</a></li>
<ul>
    <li><a href='#AsteriskPackages-Prerequisites'>Prerequisites</a></li>
    <li><a href='#AsteriskPackages-Addingtherepository'>Adding the repository</a></li>
    <li><a href='#AsteriskPackages-InstallingAsterisk'>Installing Asterisk</a></li>
<ul>
    <li><a href='#AsteriskPackages-Asterisk'>Asterisk</a></li>
    <li><a href='#AsteriskPackages-DAHDI'>DAHDI</a></li>
</ul>
</ul>
</ul></div>

<h1><a name="AsteriskPackages-APT%28Debian%2FUbuntu%29"></a>APT (Debian / Ubuntu)</h1>

<h2><a name="AsteriskPackages-Prerequisites"></a>Prerequisites</h2>

<h2><a name="AsteriskPackages-Addingtherepository"></a>Adding the repository</h2>

<h3><a name="AsteriskPackages-Importtopublickey"></a>Import to public key</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ sudo apt-key adv --keyserver subkeys.pgp.net --recv-keys 175E41DF
]]></script>
</div></div>

<h3><a name="AsteriskPackages-Addreleasebranch"></a>Add release branch</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ sudo add-apt-repository "deb http://packages.asterisk.org/deb `lsb_release -cs` main"
]]></script>
</div></div>

<h3><a name="AsteriskPackages-UpdateAPT"></a>Update APT</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ sudo apt-get update
]]></script>
</div></div>

<h2><a name="AsteriskPackages-InstallingAsterisk"></a>Installing Asterisk</h2>

<h3><a name="AsteriskPackages-Asterisk"></a>Asterisk</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ sudo apt-get install asterisk-1.8
]]></script>
</div></div>

<h3><a name="AsteriskPackages-DAHDI"></a>DAHDI</h3>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ sudo apt-get install dahdi
]]></script>
</div></div>

<h1><a name="AsteriskPackages-YUM%28CentOS%2FRedHat%29"></a>YUM (CentOS / Red Hat)</h1>

<h2><a name="AsteriskPackages-Prerequisites"></a>Prerequisites</h2>

<h2><a name="AsteriskPackages-Addingtherepository"></a>Adding the repository</h2>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ vi /etc/yum.repos.d/centos-asterisk.repo
]]></script>
</div></div>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
[asterisk-tested]
name=CentOS-$releasever - Asterisk - Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium

[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
]]></script>
</div></div>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
$ vi /etc/yum.repos.d/centos-digium.repo
]]></script>
</div></div>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="toolbar: false; theme: Confluence; brush: java; gutter: false"><![CDATA[
[digium-tested]
name=CentOS-$releasever - Digium - Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium

[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
]]></script>
</div></div>

<h2><a name="AsteriskPackages-InstallingAsterisk"></a>Installing Asterisk</h2>

<h3><a name="AsteriskPackages-Asterisk"></a>Asterisk</h3>
<ol>
        <li>yum install asterisk16</li>
</ol>


<h3><a name="AsteriskPackages-DAHDI"></a>DAHDI</h3>
<ol>
        <li>yum install dahdi-linux dahdi-tools libpri</li>
</ol>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages">View Online</a>
        |
        <a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=10650223&revisedVersion=9&originalVersion=8">View Changes</a>
                |
        <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>