<?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>Pario TechnoBlob &#187; yum</title>
	<atom:link href="http://pario.no/tag/yum/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Mon, 30 Aug 2010 15:49:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Upgrade from Fedora Core 7 to Core 8</title>
		<link>http://pario.no/2007/11/30/upgrade-from-fedora-core-7-to-core-8/</link>
		<comments>http://pario.no/2007/11/30/upgrade-from-fedora-core-7-to-core-8/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 11:40:17 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Core 7]]></category>
		<category><![CDATA[Core 8]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://pario.no/2007/11/30/upgrade-from-fedora-core-7-to-core-8/</guid>
		<description><![CDATA[This is the steps I took to upgrade a running Fedora Core 7 installation to Core 8 using yum from the command line. Please note that live upgrades are not recommended by the Fedora Project. Make a list of the systems current packages for later reference: rpm -qa --qf '%{NAME}\n' &#124; sort &#124; uniq &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>This is the steps I took to upgrade a running Fedora Core 7 installation to Core 8 using yum from the command line. Please note that  live upgrades are not recommended by the Fedora Project.</p>
<p>Make a list of the systems current packages for later reference:</p>
<pre>
rpm -qa --qf '%{NAME}\n' | sort | uniq &gt; ~/new-pkgnames.txt</pre>
<p>Make a backup of any system configuration data (as root):</p>
<pre>
tar czf ~/etc-`date +%F`.tar.gz /etc</pre>
<p><code><br />
yum clean all</code></p>
<p>Make sure the new repo files isn&#8217;t placed as .rpmnew files, perhaps by</p>
<pre>
mv /etc/yum.repos.d/fedora-updates.repo.rpmnew /etc/yum.repos.d/fedora-updates.repo
mv /etc/yum.repos.d/fedora.repo.rpmnew /etc/yum.repos.d/fedora.repo</pre>
<p>Also make sure that all the 3rd party repos you normally use point to the repository for the new Fedora release.</p>
<p>Next the upgrade.<br />
Make sure you are in runlevel 3</p>
<pre>
telinit 3</pre>
<p>Run the following command to update the yum repo on your box:</p>
<pre>
rpm -Uhv rpm -Uvh rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Everything/i386/os/Packages/fedora-release-8-3.noarch.rpm http://mirror.anl.gov/pub/fedora/linux/releases/8/Everything/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm</pre>
<p><strong>yum</strong> might complain about conflicts or requirements. That is probably because you have used non-standard repositories or installed non-standard packages manually. Try to guess which packages cause the problem (or at least is a part of the dependency chain) &#8211; uninstall them and try again. Remember to install the packages again if they are essential.</p>
<p><strong>Tip: Find and review &#8220;lost&#8221; packages. </strong><br />
You can find orphaned packages (ie packages not in the repositories anymore) after the upgrade with the tool package-cleanup from the yum-utils package
<pre>yum install yum-utils; package-cleanup --orphans</code>It's often helpful to run this command before the update, too. For packages with a failing "%postun" script the old package will remain partly installed. Remove it with <code>rpm -e package-name-and-version</pre>
<p>If you forget to remove the avahi package it will refuse to be removed from the system with a error message "error: %postun(avahi-0.6.17-1.fc7.i386) scriptlet failed, exit status 1". I haven't looked up this error message any further.</p>
<p>I had to clean yum to make it aware of the recent package change, this might not be necessary.</p>
<pre>
yum clean all
yum upgrade</pre>
<p>Ensure that all (new) essential packages from the new version is installed with</p>
<pre>
yum groupupdate Base</pre>
<p>You might want to update other groups too, see</p>
<pre>
yum grouplist</pre>
<p>The system had to upgrade 937 packages before fedora Core 7 is a fedora Core 8 installation.</p>
<p>After the upgrade has finished a reboot is required and it was time to check for orphaned packages</p>
<pre>
package-cleanup --orphans</pre>
<p>The command for removing these packages is described earlier.</p>
<p>Source: <a href="http://docs.fedoraproject.org/install-guide/f8/en_US/sn-upgrade-tree.html">http://docs.fedoraproject.org/install-guide/f8/en_US/sn-upgrade-tree.html</a>,  <a href="http://www.ioncannon.net/system-administration/133/upgrading-from-fedora-7-to-fedora-8-with-yum/">http://www.ioncannon.net/system-administration/133/upgrading-from-fedora-7-to-fedora-8-with-yum/</a> and <a href="http://fedoraproject.org/wiki/YumUpgradeFaq">http://fedoraproject.org/wiki/YumUpgradeFaq</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/docs.fedoraproject.org\/install-guide\/f8\/en_US\/sn-upgrade-tree.html","http:\/\/www.ioncannon.net\/system-administration\/133\/upgrading-from-fedora-7-to-fedora-8-with-yum\/","http:\/\/fedoraproject.org\/wiki\/YumUpgradeFaq"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTEvMzAvdXBncmFkZS1mcm9tLWZlZG9yYS1jb3JlLTctdG8tY29yZS04Lzx3cHRiPlVwZ3JhZGUgZnJvbSBGZWRvcmEgQ29yZSA3IHRvIENvcmUgODx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/11/30/upgrade-from-fedora-core-7-to-core-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpm and yum stop working on Fedora Core 5</title>
		<link>http://pario.no/2007/02/06/rpm-and-yum-stop-working-on-fedora-core-5/</link>
		<comments>http://pario.no/2007/02/06/rpm-and-yum-stop-working-on-fedora-core-5/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 11:47:34 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[core 5]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/02/06/rpm-og-yum-fungerer-ikke-pa-fedora-core-5/</guid>
		<description><![CDATA[yum and rpm stop doing their magic because of corrupt files etc and no updates can be performed on the system. A simple, but maybe not recommended solution is to delete the files located in /var/lib/rpm -rw-r--r-- 1 root root 0 Jan 22 10:10 __db.000 -rw-r--r-- 1 root root 24576 Jan 19 17:12 __db.001 -rw-r--r-- [...]]]></description>
			<content:encoded><![CDATA[<p>yum and rpm stop doing their magic because of corrupt files etc and no updates can be performed on the system.  A simple, but maybe not recommended solution is to delete the files located in <strong>/var/lib/rpm</strong></p>
<pre>
-rw-r--r-- 1 root root        0 Jan 22 10:10 __db.000
-rw-r--r-- 1 root root    24576 Jan 19 17:12 __db.001
-rw-r--r-- 1 root root  1318912 Jan 19 17:12 __db.002
-rw-r--r-- 1 root root   450560 Jan 19 17:12 __db.003</pre>
<p>This solution does most likely work in other rpm based distributions.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDIvMDYvcnBtLWFuZC15dW0tc3RvcC13b3JraW5nLW9uLWZlZG9yYS1jb3JlLTUvPHdwdGI%2BcnBtIGFuZCB5dW0gc3RvcCB3b3JraW5nIG9uIEZlZG9yYSBDb3JlIDU8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/02/06/rpm-and-yum-stop-working-on-fedora-core-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
