<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>spoofedpacket &#187; Ubuntu</title>
	<atom:link href="http://www.spoofedpacket.net/index.php/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spoofedpacket.net</link>
	<description>Rob Gallagher</description>
	<lastBuildDate>Thu, 27 May 2010 16:35:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Backporting debian packages</title>
		<link>http://www.spoofedpacket.net/index.php/2009/05/06/backporting-debian-packages/</link>
		<comments>http://www.spoofedpacket.net/index.php/2009/05/06/backporting-debian-packages/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:51:58 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.spoofedpacket.net/?p=121</guid>
		<description><![CDATA[Sometimes, you need a newer version of a package than is available in your debian/ubuntu install. There&#8217;s a number of ways to do it, for example using tools such as Prevu, but here is the step by step process. We are going to backport the latest version of Unbound from Ubuntu Jaunty (1.2.1 at the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you need a newer version of a package than is available in your debian/ubuntu install.</p>
<p>There&#8217;s a number of ways to do it, for example using tools such as <a href="https://wiki.ubuntu.com/Prevu">Prevu</a>, but here is the step by step process.</p>
<p>We are going to backport the latest version of <a href="http://www.unbound.net">Unbound</a> from Ubuntu Jaunty (1.2.1 at the time of writing) to an Ubuntu Hardy system. As a prerequisite, we need the <strong>build-essential</strong> package installed as we are going to compile some software, we also need the <strong>fakeroot</strong> package in order to build debian packages:</p>
<blockquote><p>
 aptitude install build-essential fakeroot
</p></blockquote>
<p>Firstly, we need to enable the Jaunty source repositories in our <strong>/etc/apt/sources.list file</strong>, and comment out the Hardy source repositories (any of the other lines beginning with deb-src). You should run <strong>aptitude update</strong> after this step:</p>
<blockquote><p>
 deb-src http://ie.archive.ubuntu.com/ubuntu jaunty restricted main multiverse universe
</p></blockquote>
<p>The next step is to gather what we need to compile Unbound, the build dependencies:</p>
<blockquote><p>
 apt-get build-dep unbound
</p></blockquote>
<p>Now, we retrieve the &#8220;debianised&#8221; source code for unbound:</p>
<blockquote><p>
 apt-get source unbound
</p></blockquote>
<p>Then cd into the unbound source directory (it should be something like unbound-1.2.1) and run the following command:</p>
<blockquote><p>
 dpkg-buildpackage -rfakeroot -b -uc -us
</p></blockquote>
<p>This will compile unbound and build the debian package in one go. The resultant package is deposited in the parent directory. You can install it by doing:</p>
<blockquote><p>
 dpkg -i ../unbound_1.2.1-0ubuntu1_i386.deb
</p></blockquote>
<p>If all goes well you should be able to install this package on other i386 Ubuntu Hardy systems as needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spoofedpacket.net/index.php/2009/05/06/backporting-debian-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
