<?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>Racker Hacker &#187; rpm</title>
	<atom:link href="http://rackerhacker.com/tag/rpm/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Locate RPM packages which contain a certain file</title>
		<link>http://rackerhacker.com/2010/12/08/locate-rpm-packages-which-contain-a-certain-file/</link>
		<comments>http://rackerhacker.com/2010/12/08/locate-rpm-packages-which-contain-a-certain-file/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 02:30:00 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2040</guid>
		<description><![CDATA[It's not easy remembering which RPM packages contain certain files. If I asked you which files you'd find in packages like postfix-2.7.1-1.fc14 and bash-4.1.7-3.fc14, you would be able to name some obvious executables. However, would you be able to do the same if I mentioned a package like util-linux-ng-2.18-4.6.fc14? If the RPM is already installed, [...]<p><a href="http://rackerhacker.com/2010/12/08/locate-rpm-packages-which-contain-a-certain-file/">Locate RPM packages which contain a certain file</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>It's not easy remembering which RPM packages contain certain files.  If I asked you which files you'd find in packages like <code>postfix-2.7.1-1.fc14</code> and <code>bash-4.1.7-3.fc14</code>, you would be able to name some obvious executables.  However, would you be able to do the same if I mentioned a package like <code>util-linux-ng-2.18-4.6.fc14</code>?  If the RPM is already installed, you can quickly use <code>rpm -ql</code> to list the files within it.</p>
<p>However, what if the RPM isn't installed already?  How do you figure out which one to install?</p>
<p>Fedora has well over 20,000 packages in the standard repositories without adding additional repositories like RPM Fusion.  Narrowing that list down to find the package you want can be daunting, but you can use yum to help.</p>
<p>Consider this: you're following a guide online and the author says you need to run <code>deallocvt</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># deallocvt
-bash: deallocvt: command not found</pre></div></div>

<p>Perhaps it's in a package with <code>deallocvt</code> in the name:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># yum search deallocvt
Warning: No matches found for: deallocvt
No Matches found</pre></div></div>

<p>This is where yum's <code>whatprovides</code> (<code>provides</code> works in recent yum versions) command works really well:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># yum whatprovides */deallocvt
kbd-1.15-11.fc14.x86_64 : Tools for configuring the console
Repo        : fedora
Matched from:
Filename    : /usr/bin/deallocvt</pre></div></div>

<p>From there, you can install the <code>kbd</code> RPM package via yum and you'll be on your way.</p>
<p><em>Author's note: Regular readers will probably think this is pretty basic, but I often find people who don't know this functionality exists in yum.</em></p>
<p><strong>UPDATE:</strong> I forgot to include another handy command in this article (thanks to Jason Gill for reminding me).  If you have file on your system already, but you need to know which RPM package it came from, you can do this very quickly:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># rpm -qf /usr/bin/free
procps-3.2.8-14.fc14.x86_64</pre></div></div>

<p><a href="http://rackerhacker.com/2010/12/08/locate-rpm-packages-which-contain-a-certain-file/">Locate RPM packages which contain a certain file</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2010/12/08/locate-rpm-packages-which-contain-a-certain-file/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upgrading Fedora 13 to Fedora 14 on Slicehost and Rackspace Cloud Servers</title>
		<link>http://rackerhacker.com/2010/11/03/upgrading-fedora-13-to-fedora-14-on-slicehost-and-rackspace-cloud-servers/</link>
		<comments>http://rackerhacker.com/2010/11/03/upgrading-fedora-13-to-fedora-14-on-slicehost-and-rackspace-cloud-servers/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 20:02:45 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[cloud servers]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1840</guid>
		<description><![CDATA[On most systems, using Fedora's preupgrade package is the most reliable way to update to the next Fedora release. However, this isn't the case with Slicehost and Rackspace Cloud Servers. Here are the steps for an upgrade from Fedora 13 to Fedora 14 via yum: yum -y upgrade wget http://mirror.rackspace.com/fedora/releases/14/Fedora/x86_64/os/Packages/fedora-release-14-1.noarch.rpm rpm -Uvh fedora-release-14-1.noarch.rpm yum -y [...]<p><a href="http://rackerhacker.com/2010/11/03/upgrading-fedora-13-to-fedora-14-on-slicehost-and-rackspace-cloud-servers/">Upgrading Fedora 13 to Fedora 14 on Slicehost and Rackspace Cloud Servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>On most systems, using Fedora's <a href="http://fedoraproject.org/wiki/PreUpgrade">preupgrade</a> package is the most reliable way to update to the next Fedora release.  However, this isn't the case with Slicehost and Rackspace Cloud Servers.</p>
<p>Here are the steps for an upgrade from Fedora 13 to Fedora 14 via yum:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum -y upgrade
wget http://mirror.rackspace.com/fedora/releases/14/Fedora/x86_64/os/Packages/fedora-release-14-1.noarch.rpm
rpm -Uvh fedora-release-14-1.noarch.rpm
yum -y install yum
yum -y upgrade</pre></div></div>

<p>If you happen to be upgrading a 32-bit instance on Slicehost, simply replace <code>x86_64</code> with <code>i386</code> in the url shown above.</p>
<p><a href="http://rackerhacker.com/2010/11/03/upgrading-fedora-13-to-fedora-14-on-slicehost-and-rackspace-cloud-servers/">Upgrading Fedora 13 to Fedora 14 on Slicehost and Rackspace Cloud Servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2010/11/03/upgrading-fedora-13-to-fedora-14-on-slicehost-and-rackspace-cloud-servers/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Upgrading Fedora 11 to 12 using yum</title>
		<link>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/</link>
		<comments>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 02:28:06 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1055</guid>
		<description><![CDATA[As with the Fedora 10 to 11 upgrade, you can upgrade Fedora 11 to Fedora 12 using yum. I find this to be the easiest and most reliable way to upgrade a Fedora installation whether you use it as a server or desktop. To reduce the total data downloaded, I'd recommend installing the yum-presto package [...]<p><a href="http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/">Upgrading Fedora 11 to 12 using yum</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>As with the <a href="/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/">Fedora 10 to 11 upgrade</a>, you can upgrade Fedora 11 to Fedora 12 using yum.  I find this to be the easiest and most reliable way to upgrade a Fedora installation whether you use it as a server or desktop.</p>
<p>To reduce the total data downloaded, I'd recommend installing the <code>yum-presto</code> package first.  It downloads delta RPM's and builds them on the fly, which allows you to upgrade packages without having to download the entire RPM's.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum install yum-presto</pre></div></div>

<p>Now, upgrade your current system to the latest packages and clean up yum's metadata:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum upgrade
yum clean all</pre></div></div>

<p>Get the latest <code>fedora-release</code> package and install it (replace <b>x86_64</b> with <b>x86</b> if you're using a 32-bit system):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">wget ftp://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/x86_64/os/Packages/fedora-release-*.noarch.rpm
rpm -Uvh fedora-release-*.rpm</pre></div></div>

<p>Now, upgrade your system to Fedora 12:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum upgrade</pre></div></div>

<blockquote><p>For detailed documentation on the entire process, refer to <a href="http://fedoraproject.org/wiki/YumUpgradeFaq">Fedora using yum</a> on the FedoraProject Wiki.</p></blockquote>
<p><a href="http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/">Upgrading Fedora 11 to 12 using yum</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading from Fedora 10 (Cambridge) to Fedora 11 (Leonidas)</title>
		<link>http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/</link>
		<comments>http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 17:48:39 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=894</guid>
		<description><![CDATA[There are two main ways to upgrade Fedora 10 (Cambridge) to Fedora 11 (Leonidas): &#187; What the Fedora developers suggest: yum -y upgrade yum -y install preupgrade yum clean all preupgrade-cli &#34;Fedora 11 (Leonidas)&#34; Of course, if you're doing this on a Fedora desktop, you can use preupgrade (rather than preupgrade-cli) to upgrade with a [...]<p><a href="http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/">Upgrading from Fedora 10 (Cambridge) to Fedora 11 (Leonidas)</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>There are two main ways to upgrade Fedora 10 (Cambridge) to Fedora 11 (Leonidas):</p>
<p><strong>&raquo; What the Fedora developers suggest:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum -y upgrade
yum -y install preupgrade
yum clean all
preupgrade-cli &quot;Fedora 11 (Leonidas)&quot;</pre></div></div>

<p>Of course, if you're doing this on a Fedora desktop, you can use <code>preupgrade</code> (rather than <em>preupgrade-cli</em>) to upgrade with a GUI.</p>
<p><strong>&raquo; The method I prefer (and it works properly on <a href="http://slicehost.com/">Slicehost</a>):</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum -y upgrade
yum clean all
wget http://download.fedora.redhat.com/pub/fedora/linux/releases/11/Fedora/x86_64/os/Packages/fedora-release-11-1.noarch.rpm
rpm -Uvh fedora-release-11-1.noarch.rpm</pre></div></div>

<p>At this point, you would normally just start upgrading packages, but the Fedora developers threw us a curveball.  Since yum in Fedora 10 doesn't support metalinks, your upgrades will fail with something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># yum -y upgrade
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. /
removing mirrorlist with no valid mirrors: //var/cache/yum/updates/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again</pre></div></div>

<p>It's easily fixed, however.  Open up <code>/etc/yum.repos.d/fedora.repo</code> and <code>/etc/yum.repos.d/fedora-updates.repo</code> in your favorite text editor and change the <code>mirrorlist</code> URL's like so:</p>
<p><strong>Fedora Repository</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&amp;arch=$basearch
mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&amp;arch=$basearch</pre></div></div>

<p><strong>Fedora Updates Repository</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&amp;arch=$basearch
mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&amp;arch=$basearch</pre></div></div>

<p>Once you make those changes, finish out the upgrade:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum -y upgrade</pre></div></div>

<p>This process will take a little while to complete, but there shouldn't be any interaction required.  Once it's done, change the <code>mirrorlist</code> lines back to the original values so you can benefit from the speedups provided by the metalink format.</p>
<p><a href="http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/">Upgrading from Fedora 10 (Cambridge) to Fedora 11 (Leonidas)</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Compare the RPM packages installed on two different servers</title>
		<link>http://rackerhacker.com/2009/03/10/compare-the-rpm-packages-installed-on-two-different-servers/</link>
		<comments>http://rackerhacker.com/2009/03/10/compare-the-rpm-packages-installed-on-two-different-servers/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 23:31:49 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=688</guid>
		<description><![CDATA[Setting up new servers can be a pain if you're not able to clone them from a server that is known to be working. Many VPS providers, like Slicehost, allow you to clone a system to a new system. Without that option, you can pull a list of RPM's without their version number for a [...]<p><a href="http://rackerhacker.com/2009/03/10/compare-the-rpm-packages-installed-on-two-different-servers/">Compare the RPM packages installed on two different servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Setting up new servers can be a pain if you're not able to clone them from a server that is known to be working.  Many VPS providers, like <a href="http://slicehost.com/">Slicehost</a>, allow you to clone a system to a new system.  Without that option, you can pull a list of RPM's without their version number for a fairly quick and basic comparison.</p>
<p>First, pull a list of RPM package by name only:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpm -qa --queryformat='%{NAME}\n' | sort &gt; server.txt</pre></div></div>

<p>Once you've done that on both servers, just use diff to compare the two files:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">diff serverold.txt servernew.txt</pre></div></div>

<p><a href="http://rackerhacker.com/2009/03/10/compare-the-rpm-packages-installed-on-two-different-servers/">Compare the RPM packages installed on two different servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/03/10/compare-the-rpm-packages-installed-on-two-different-servers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing Microsoft&#039;s TrueType fonts on Linux servers</title>
		<link>http://rackerhacker.com/2008/10/23/installing-microsofts-truetype-fonts-on-linux-servers/</link>
		<comments>http://rackerhacker.com/2008/10/23/installing-microsofts-truetype-fonts-on-linux-servers/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 00:31:23 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=500</guid>
		<description><![CDATA[Although the idea of putting something from Microsoft on a Linux box might sound awful at first, you may find a reason to use Microsoft TrueType fonts on a Linux server. If you're using GD to render an image, these fonts may come in handy. If you have an RPM-based linux distribution, you can use [...]<p><a href="http://rackerhacker.com/2008/10/23/installing-microsofts-truetype-fonts-on-linux-servers/">Installing Microsoft's TrueType fonts on Linux servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Although the idea of <a href="http://www.rtr.com/fpsupport/">putting something from Microsoft on a Linux box</a> might sound awful at first, you may find a reason to use Microsoft TrueType fonts on a Linux server.  If you're using GD to render an image, these fonts may come in handy.</p>
<p>If you have an RPM-based linux distribution, you can use a spec file that is available on <a href="http://corefonts.sourceforge.net/">SourceForge</a>.  You can follow the instructions on the <a href="http://corefonts.sourceforge.net/">project's page</a>, or you can follow these abbreviated instructions here:</p>
<p>Install some prerequisites:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">// RHEL 4
up2date -i rpm-build wget ttmkfdir
// RHEL 5
yum install rpm-build wget ttmkfdir</pre></div></div>

<p>Install <a href="http://rpmfind.net/linux/rpm2html/search.php?query=cabextract&#038;submit=Search+...">cabextract</a>.</p>
<p>Build the RPM:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">wget -O /usr/src/redhat/SPECS/msttcorefonts-2.0-1.spec http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
rpmbuild -bb msttcorefonts-2.0-1.spec
rpm -Uvh /usr/src/redhat/SPECS/msttcorefonts-2.0-1.spec</pre></div></div>

<p>Test it to be sure that they're installed:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">xlsfonts | grep ^-microsoft
rpm -ql msttcorefonts</pre></div></div>

<p><a href="http://rackerhacker.com/2008/10/23/installing-microsofts-truetype-fonts-on-linux-servers/">Installing Microsoft's TrueType fonts on Linux servers</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/10/23/installing-microsofts-truetype-fonts-on-linux-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpmdb: Lock table is out of available locker entries</title>
		<link>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/</link>
		<comments>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/#comments</comments>
		<pubDate>Sun, 27 May 2007 16:38:32 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[bdb]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[up2date]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/</guid>
		<description><![CDATA[If up2date throws some horrible Python errors and rpm says "rpmdb: Lock table is out of available locker entries", you can restore your system to normality with the following: The errors: rpmdb: Lock table is out of available locker entries error: db4 error(22) from db-&#62;close: Invalid argument error: cannot open Packages index using db3 - [...]<p><a href="http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/">rpmdb: Lock table is out of available locker entries</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>If up2date throws some horrible Python errors and rpm says "rpmdb: Lock table is out of available locker entries", you can restore your system to normality with the following:</p>
<p>The errors:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpmdb: Lock table is out of available locker entries
error: db4 error(22) from db-&gt;close: Invalid argument
error: cannot open Packages index using db3 - Cannot allocate memory (12)
error: cannot open Packages database in /var/lib/rpm</pre></div></div>

<p>Make a backup of /var/lib/rpm in case you break something:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">tar cvzf rpmdb-backup.tar.gz /var/lib/rpm</pre></div></div>

<p>Remove the Berkeley databases that rpm uses:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rm /var/lib/rpm/__db.00*</pre></div></div>

<p>Make rpm rebuild the databases from scratch (may take a short while):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpm --rebuilddb</pre></div></div>

<p>Now, check rpm to make sure everything is okay:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpm -qa | sort</pre></div></div>

<p><b>Why does this happen?</b><br />
When rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data.  If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.</p>
<p><a href="http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/">rpmdb: Lock table is out of available locker entries</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
	</channel>
</rss>

