<?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>Note to Self &#187; yum</title>
	<atom:link href="http://notetoself.vrensk.com/tag/yum/feed/" rel="self" type="application/rss+xml" />
	<link>http://notetoself.vrensk.com</link>
	<description>lest I forget</description>
	<lastBuildDate>Fri, 23 Feb 2018 12:54:38 +0000</lastBuildDate>
	<language>sv-SE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Keeping Fedora 6 going after end-of-life</title>
		<link>http://notetoself.vrensk.com/2009/06/keeping-fedora-6-going-after-end-of-life/</link>
		<comments>http://notetoself.vrensk.com/2009/06/keeping-fedora-6-going-after-end-of-life/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 16:38:21 +0000</pubDate>
		<dc:creator>David Vrensk</dc:creator>
				<category><![CDATA[Server Configuration]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://notetoself.vrensk.com/?p=53</guid>
		<description><![CDATA[All hackers want to live on the edge. What we rarely reflect on is the fact that most things have more than one edge. Adaptation curves have two: one where the early adopters build up their reputation for cool and one where I found myself this afternoon. Apparently I should have let go of Fedora [...]]]></description>
				<content:encoded><![CDATA[<p>All hackers want to live on the edge.  What we rarely reflect on is the fact that most things have more than one edge.  Adaptation curves have two: one where the early adopters build up their reputation for cool and one where I found myself this afternoon.</p>
<p>Apparently I should have let go of Fedora 6 some time ago.  I installed this particular server in December 2006 when FC6 was the cool new girl on the block, and it has been running smoothly since then.  But today when I tried to (<code>yum</code>) install a package, there were no servers to be found:</p>
<pre><code># yum search libxslt-devel
Loading "installonlyn" plugin
Setting up repositories

http://archive.kernel.org/fedora-archive/fedora/linux/core/6/i386/os/repodata/repomd.xml:

  [Errno 14] HTTP Error 404: Server: nginx/0.5.0
...
Trying other mirror.
core                      100% |=========================| 1.1 kB    00:00
Error: Cannot find a valid baseurl for repo: extras
</code></pre>
<p>Oops.  I looked in <code>/etc/yum.repos.d/fedora-extras.repo</code> which is provides the base URL:</p>
<pre><code>[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&amp;arch=$basearch
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
</code></pre>
<p>In earlier experience, the problem has been that the DNS service for the repo that <code>mirrorlist</code> recommends is down, and this is what some googling suggested too.  So I went to <a href="http://mirrors.fedoraproject.org/mirrorlist?repo=extras-6&amp;arch=i386" onclick="pageTracker._trackPageview('/outgoing/mirrors.fedoraproject.org/mirrorlist?repo=extras-6_amp_arch=i386&amp;referer=http%3A%2F%2Fnotetoself.vrensk.com%2Ftag%2Fyum%2Ffeed');">mirrors.fedoraproject.org</a> to see what it said.  The answer surprised me:</p>
<pre><code># repo = extras-6 arch = i386 error: invalid repo or arch
# following repositories are available:
# repo=core-2, arch=i386
# repo=core-2, arch=x86_64
# ...
# repo=core-6, arch=x86_64
# ...
</code></pre>
<p>So <code>core-6</code> is in the list but <code>extras-6</code> is not.  I tried some different combinations thinking I had got it wrong, but to no avail.  Instead, on a whim, I checked out the <a href="http://mirrors.fedoraproject.org/" onclick="pageTracker._trackPageview('/outgoing/mirrors.fedoraproject.org/?referer=http%3A%2F%2Fnotetoself.vrensk.com%2Ftag%2Fyum%2Ffeed');">site’s root</a> where I could navigate to a human-readable <a href="http://mirrors.fedoraproject.org/publiclist/Fedora/6/i386/" onclick="pageTracker._trackPageview('/outgoing/mirrors.fedoraproject.org/publiclist/Fedora/6/i386/?referer=http%3A%2F%2Fnotetoself.vrensk.com%2Ftag%2Fyum%2Ffeed');">list of mirrors</a> and I started checking them out one by one.  Uni-Bayreuth seemed to have what I wanted, so I edited <code>fedora-extras.repo</code> like this:</p>
<pre><code>[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&amp;arch=$basearch
baseurl=http://ftp.uni-bayreuth.de/linux/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
</code></pre>
<p>and ran <code>yum search libxslt-devel</code> again.  This time it complained about <code>updates</code> instead (<code>Error: Cannot find a valid baseurl for repo: updates</code>).  Unfortunately Bayreuth didn’t have the updates catalog which sent me searching in a few other places until I finally decided to try to make do without it by setting <code>enabled=0</code> in <code>fedora-updates.repo</code>:</p>
<pre><code>[updates]
name=Fedora Core $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc$releasever&amp;arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
</code></pre>
<p>It worked, and I was able to install the packages I wanted, but I really need to get myself a newer OS.  I’ll combine that with a move to another host; FS-data have let me down once too many, and I’ve never fancied upgrading the OS on a production server anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://notetoself.vrensk.com/2009/06/keeping-fedora-6-going-after-end-of-life/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
