<?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>Steve Glendinning &#187; Apt</title>
	<atom:link href="http://www.steveglendinning.com/tag/apt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.steveglendinning.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Nov 2009 10:26:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Wordpress 2.2 on Debian Etch</title>
		<link>http://www.steveglendinning.com/2007/10/01/etch-wordpress/</link>
		<comments>http://www.steveglendinning.com/2007/10/01/etch-wordpress/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 20:56:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Apt]]></category>
		<category><![CDATA[Etch]]></category>

		<guid isPermaLink="false">http://www.steveglendinning.com/2007/10/01/etch-wordpress/</guid>
		<description><![CDATA[The Debian package for Wordpress in Etch is version 2.0.  Lenny (the current testing distribution) has version 2.2, which has quite a few improvements.  Here&#8217;s how I installed this testing package without upsetting the rest of my stable system.
Wordpress is a php package, so it&#8217;s architecture independant and has hardly any dependencies.  [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.debian.org">Debian</a> package for <a href="http://www.wordpress.org">Wordpress</a> in Etch is version 2.0.  Lenny (the current testing distribution) has version 2.2, which has quite a few <a href="http://codex.wordpress.org/Version_2.2" title="Wordpress 2.2">improvements</a>.  Here&#8217;s how I installed this testing package without upsetting the rest of my stable system.</p>
<p>Wordpress is a php package, so it&#8217;s architecture independant and has hardly any dependencies.  In fact the only dependency that can&#8217;t be satisfied from stable is libphp-phpmailer: wordpress 2.2 needs a newer version of this library than shipped with etch.  It&#8217;s possible to manually download those two packages from the testing distribution and install them manually, but there&#8217;s a better way.</p>
<p>Add the testing distribution to your /etc/apt/sources.list so it looks like this (the first two should already be in there):</p>
<blockquote><p>deb http://ftp.uk.debian.org/debian/ etch main contrib non-free<br />
deb http://security.debian.org/ etch/updates main contrib non-free<br />
deb http://ftp.uk.debian.org/debian/ testing main</p></blockquote>
<p>Then use apt-pinning to disable the testing distribution for all packages except the ones you want.  Edit the /etc/apt/preferences file (you may have to create it if it doesn&#8217;t already exist) so it looks like this:</p>
<blockquote><p>Package: *<br />
Pin: release a=stable<br />
Pin-Priority: 700</p>
<p>Package: *<br />
Pin: release a=testing<br />
Pin-Priority: -1</p>
<p>Package: wordpress<br />
Pin: release a=testing<br />
Pin-Priority: 800</p>
<p>Package: libphp-phpmailer<br />
Pin: release a=testing<br />
Pin-Priority: 800</p></blockquote>
<p>The magic part of this is the preference of &#8220;-1&#8243; for the testing distribution, which removes its packages from the available list.  If you put a positive preference such as 500 (which is lower than the stable preference of 700), stable will still &#8220;win&#8221; for most packages but you&#8217;ll see some that aren&#8217;t in stable.  The preference of 800 is assigned to the two packages we *do* want, and this makes them preferred over stable.</p>
<p>Now install wordpress 2.2:</p>
<blockquote><p>apt-get update<br />
apt-get install wordpress</p></blockquote>
<p>If you already have wordpress 2.0 installed, &#8220;apt-get update; apt-get upgrade&#8221; will upgrade your 2.0 copy instead.</p>
<p>This technique can be used to cherry pick other packages from testing into a stable base system, but only if they don&#8217;t have significant dependencies (such as a newer c library version).  In this case, <a href="http://backports.org">backports.org</a> is your friend.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steveglendinning.com/2007/10/01/etch-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
