<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/2042/1/7/_/styles/combined.css?spaceKey=AST&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>
<div id="versionComment">
<b>Comment:</b>
typo in -proposed repos.<br />
</div>
<br/>
<h4>Changes (1)</h4>
<div id="page-diffs">
<table class="diff" cellpadding="0" cellspacing="0">
<tr><td class="diff-snipped" >...<br></td></tr>
<tr><td class="diff-unchanged" >h3. Adding the repository <br>{code} <br></td></tr>
<tr><td class="diff-changed-lines" >$ sudo add-apt-repository "deb <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">http://packages.asterisk.org/ubuntu</span> <span class="diff-added-words"style="background-color: #dfd;">http://packages.asterisk.org/deb</span> `lsb_release -cs`-proposed main" <br></td></tr>
<tr><td class="diff-unchanged" >{code} <br> <br></td></tr>
<tr><td class="diff-snipped" >...<br></td></tr>
</table>
</div> <h4>Full Content</h4>
<div class="notificationGreySide">
<div>
<ul>
<li><a href='#AsteriskPackages-Introduction'>1. Introduction</a></li>
<li><a href='#AsteriskPackages-APT%28Debian%2FUbuntu%29'>2. APT (Debian / Ubuntu)</a></li>
<ul>
<li><a href='#AsteriskPackages-Prerequisites'>2.1. Prerequisites</a></li>
<ul>
<li><a href='#AsteriskPackages-Dependencies'>2.1.1. Dependencies</a></li>
<li><a href='#AsteriskPackages-Importingthepublickey'>2.1.2. Importing the public key</a></li>
</ul>
<li><a href='#AsteriskPackages-Addingthereleasebranch'>2.2. Adding the release branch</a></li>
<ul>
<li><a href='#AsteriskPackages-Addingtherepository'>2.2.1. Adding the repository</a></li>
</ul>
<li><a href='#AsteriskPackages-Addingtheproposedbranch%28Optional%29'>2.3. Adding the proposed branch (Optional)</a></li>
<ul>
<li><a href='#AsteriskPackages-Addingtherepository'>2.3.1. Adding the repository</a></li>
</ul>
<li><a href='#AsteriskPackages-InstallingAsterisk'>2.4. Installing Asterisk</a></li>
<ul>
<li><a href='#AsteriskPackages-UpdateAPT'>2.4.1. Update APT</a></li>
<li><a href='#AsteriskPackages-Asterisk'>2.4.2. Asterisk</a></li>
<li><a href='#AsteriskPackages-DAHDI'>2.4.3. DAHDI</a></li>
</ul>
</ul>
<li><a href='#AsteriskPackages-YUM%28CentOS%2FRedHat%29'>3. YUM (CentOS / Red Hat)</a></li>
<ul>
<li><a href='#AsteriskPackages-Prerequisites'>3.1. Prerequisites</a></li>
<li><a href='#AsteriskPackages-Addingtherepository'>3.2. Adding the repository</a></li>
<li><a href='#AsteriskPackages-InstallingAsterisk'>3.3. Installing Asterisk</a></li>
<ul>
<li><a href='#AsteriskPackages-Asterisk'>3.3.1. Asterisk</a></li>
<li><a href='#AsteriskPackages-DAHDI'>3.3.2. DAHDI</a></li>
</ul>
</ul>
</ul></div>
<h1><a name="AsteriskPackages-Introduction"></a>1. Introduction</h1>
<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 APT for Debian and Ubuntu or YUM utility on CentOS 5 Linux and for RedHat Enterprise Linux 5.</p>
<h1><a name="AsteriskPackages-APT%28Debian%2FUbuntu%29"></a>2. APT (Debian / Ubuntu)</h1>
<p>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:</p>
<ul>
        <li>Debian 6.0 (squeeze)</li>
        <li>Ubuntu 10.04 (lucid)</li>
        <li>Ubuntu 10.10 (maverick)</li>
        <li>Ubuntu 11.04 (natty)</li>
</ul>
<h2><a name="AsteriskPackages-Prerequisites"></a>2.1. Prerequisites</h2>
<h3><a name="AsteriskPackages-Dependencies"></a>2.1.1. Dependencies</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 python-software-properties
]]></script>
</div></div>
<h3><a name="AsteriskPackages-Importingthepublickey"></a>2.1.2. Importing the 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 pgp.mit.edu --recv-keys 175E41DF
]]></script>
</div></div>
<h2><a name="AsteriskPackages-Addingthereleasebranch"></a>2.2. Adding the release branch</h2>
<h3><a name="AsteriskPackages-Addingtherepository"></a>2.2.1. Adding the repository</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>
<h2><a name="AsteriskPackages-Addingtheproposedbranch%28Optional%29"></a>2.3. Adding the proposed branch (Optional)</h2>
<p>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.</p>
<h3><a name="AsteriskPackages-Addingtherepository"></a>2.3.1. Adding the repository</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`-proposed main"
]]></script>
</div></div>
<h2><a name="AsteriskPackages-InstallingAsterisk"></a>2.4. Installing Asterisk</h2>
<h3><a name="AsteriskPackages-UpdateAPT"></a>2.4.1. 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>
<h3><a name="AsteriskPackages-Asterisk"></a>2.4.2. 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>2.4.3. 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 asterisk-dahdi
]]></script>
</div></div>
<h1><a name="AsteriskPackages-YUM%28CentOS%2FRedHat%29"></a>3. YUM (CentOS / Red Hat)</h1>
<h2><a name="AsteriskPackages-Prerequisites"></a>3.1. Prerequisites</h2>
<h2><a name="AsteriskPackages-Addingtherepository"></a>3.2. 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-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-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>3.3. Installing Asterisk</h2>
<h3><a name="AsteriskPackages-Asterisk"></a>3.3.1. 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[
# yum install asterisk16
]]></script>
</div></div>
<h3><a name="AsteriskPackages-DAHDI"></a>3.3.2. 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[
# yum install dahdi-linux dahdi-tools libpri
]]></script>
</div></div>
</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=25&originalVersion=24">View Changes</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>