<?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>Wed, 16 May 2012 12:55:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>New Fedora and EPEL package: httpry</title>
		<link>http://rackerhacker.com/2012/03/14/new-fedora-and-epel-package-httpry/</link>
		<comments>http://rackerhacker.com/2012/03/14/new-fedora-and-epel-package-httpry/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 14:00:29 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[scientific linux]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=3224</guid>
		<description><![CDATA[A fellow Racker showed me httpry about five years ago and I've had in my toolbox as a handy way to watch HTTP traffic. I'd used some crazy tcpdump arguments and some bash one-liners to pull out the information I needed but I never could get the live look that I really wanted. Here's an [...]<p><a href="http://rackerhacker.com/2012/03/14/new-fedora-and-epel-package-httpry/">New Fedora and EPEL package: httpry</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>A fellow Racker showed me <a href="http://dumpsterventures.com/jason/httpry/">httpry</a> about five years ago and I've had in my toolbox as a handy way to watch HTTP traffic.  I'd used some crazy tcpdump arguments and some bash one-liners to pull out the information I needed but I never could get the live look that I really wanted.</p>
<p>Here's an example of what httpry's output looks like on a busy site like icanhazip.com:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">2012-03-13 23:29:39 186.x.x.x	192.x.x.x &gt; GET	icanhazip.com	/	HTTP/1.1	-	-
2012-03-13 23:29:39 192.x.x.x	186.x.x.x &lt; -	-	-	HTTP/1.1	200	OK
2012-03-13 23:29:39 187.x.x.x	192.x.x.x &gt; GET	icanhazip.com	/	HTTP/1.0	-	-
2012-03-13 23:29:39 192.x.x.x	187.x.x.x &lt; -	-	-	HTTP/1.0	200	OK
2012-03-13 23:29:39 188.x.x.x	192.x.x.x &gt; GET	icanhazip.com	/	HTTP/1.1	-	-
2012-03-13 23:29:39 192.x.x.x	188.x.x.x &lt; -	-	-	HTTP/1.1	200	OK
2012-03-13 23:29:39 189.x.x.x	192.x.x.x &gt; GET	icanhazip.com	/	HTTP/1.1	-	-
2012-03-13 23:29:39 192.x.x.x	189.x.x.x &lt; -	-	-	HTTP/1.1	200	OK</pre></div></div>

</pre>
<p>You can watch the requests come in and the responses go out in real time.  It even allows for BPF-style packet filters which allow you to narrow down the source and/or destination IP addresses and ports you want to watch.  You can run it as a foreground process or as a daemon depending on your needs.</p>
<p>It's now available as a <a href="https://admin.fedoraproject.org/updates/httpry">RPM package</a> for Fedora 15, 16, 17 (and rawhide) as well as EPEL 6 (for RHEL/CentOS/SL 6).</p>
<p><a href="http://rackerhacker.com/2012/03/14/new-fedora-and-epel-package-httpry/">New Fedora and EPEL package: httpry</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/2012/03/14/new-fedora-and-epel-package-httpry/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Looking back at the long road to becoming a Red Hat Certified Architect</title>
		<link>http://rackerhacker.com/2012/02/13/looking-back-at-the-long-road-to-becoming-a-red-hat-certified-architect/</link>
		<comments>http://rackerhacker.com/2012/02/13/looking-back-at-the-long-road-to-becoming-a-red-hat-certified-architect/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 15:00:41 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[certifications]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[general advice]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=3058</guid>
		<description><![CDATA[The grades came back last Friday and I've passed the last exam in the requirements to become a Red Hat Certified Architect (RHCA). I was fortunate enough to be part of Rackspace's RHCA pilot program and we took our first exam back at the end of 2010. It's definitely a good feeling to be finished [...]<p><a href="http://rackerhacker.com/2012/02/13/looking-back-at-the-long-road-to-becoming-a-red-hat-certified-architect/">Looking back at the long road to becoming a Red Hat Certified Architect</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>The grades came back last Friday and I've passed the last exam in the requirements to become a <a href="http://www.redhat.com/training/certifications/rhca/">Red Hat Certified Architect (RHCA)</a>.  I was fortunate enough to be part of Rackspace's RHCA pilot program and we took our first exam back at the end of 2010.  It's definitely a good feeling to be finished and I'm definitely ready to give back some knowledge to the readers of this blog.</p>
<p><strong>First things first:</strong> there are going to be many part of this post which probably aren't as specific as you'd like.  A lot of that is due to the NDA that all Red Hat examinees agree to when they take an exam.  We aren't allowed to talk about what was on the exam or our experiences during the exam.  If we do, penalties range from smaller things like losing certifications all the way up to serious stuff like legal action.  It goes without saying that I want to protect the security of the exams, I don't want to lose my certifications, and I don't want to hire a lawyer.  Please try to keep this in mind if you yearn for more specifics than I'm able to give.</p>
<p><strong>Red Hat Certified Engineer</strong><br />
The <a href="http://www.redhat.com/training/courses/ex200/examobjective">RHCSA</a> and <a href="http://www.redhat.com/training/courses/ex300/examobjective">RHCE</a> exams are the first step on the path to the RHCA.  You can't take any of the RHCA prerequisite exams without it.  These exams cover a really broad spectrum of material including apache configuration, NFS, iptables and mail services.  The two links above will take you to the exam objectives for each exam.</p>
<p>I've always recommended the RHCE exam for Linux administrators who are trying to sharpen their skills and get to the next level whether they use Red Hat or not.  The exam covers a lot of good material that makes a solid foundation for any Linux user without throwing in too many Red Hat-specific knowledge.</p>
<p>The exam (like all Red Hat exams) is fully practical.  There are no multiple choice questions or essays.  You'll have to meet all of the objectives by logging into a local Red Hat system and making the system do what it needs to do.</p>
<p>Quick tips for the RHCSA/RHCE exams:</p>
<ul>
<li>Keep your eye on the clock. Time can really get away from you if you get stuck in the weeds on a problem that should be relatively straightforward.</li>
<li>Leave time at the end to check your work.  When you set up a lot of services, it's inevitable that you might configure a service for one problem that breaks the functionality required by a problem you completed already.</li>
<li>Always reboot before you leave.  We all forget to use <code>chkconfig</code> when we're in a hurry.</li>
<li>Practice, practice, practice.  There's not one objective on this exam that you can't test in a VM on your own.</li>
</ul>
<p><strong>Red Hat Enterprise System Monitoring and Performance Tuning</strong><br />
Our group at Rackspace started off with <a href="http://www.redhat.com/training/courses/ex442/examobjective">EX442</a> and it was a very difficult way to start off the RHCA track.  Take a look at the objectives and you'll see that much of the exam is related to tweaking system performance and then monitoring that performance with graphs and raw data.  You'll have to turn a lot of knobs on the kernel and you'll need to know where to store these configurations so they'll be persistent.</p>
<p>In addition, the objective regarding TCP buffers and related settings is a real challenge.  You'll have to wrestle with some math that appears to be relatively simple, but can get confusing quickly.  Some of the settings can't really be checked to know if your setting is correct.  The objectives mention tuning disk scheduling -- you don't really have the time or tools to know if your setting is ideal.</p>
<p>Quick tips for EX442:</p>
<ul>
<li>Use the documentation available to you. Install the <code>kernel-doc</code> package while you practice and during the exam.</li>
<li>Be careful with your math.  You have a Linux machine in front of you!  Don't forget about <code>bc</code>.</li>
<li>Watch your units.  Know the difference between a kilobyte (KB) and a kibibyte (KiB).</li>
<li>Make comments in files where you adjust kernel configurations.  It will help you keep track of which question the kernel adjustment is meant to satisfy.</li>
</ul>
<p><strong>Red Hat Enterprise Storage Management</strong><br />
I'm surprised to say this now, but I actually enjoyed <a href="http://www.redhat.com/training/courses/ex436/examobjective">EX436</a>.  I've always used other clustering tools like heartbeat and pacemaker, but I've never had the need to use the Red Hat Cluster Suite.  Although RHCS definitely has a lot of quirks and rough edges, it's pretty solid once you get familiar with the GUI and command line tools.</p>
<p>You get the opportunity to mess around with some pretty useful technology like iSCSI, GFS, and clustered LVM.  These are things that you're probably already using or will be using soon in a large server environment.  The web interface for RHCS is quite peculiar and you may find yourself wanting to put your fist through the screen when you're staring down the endless animated GIFs when the cluster is syncing its configuration.  Do your best to be patient because you certainly don't want to short circuit the cluster sync.</p>
<p>Quick tips for EX436:</p>
<ul>
<li>Be patient.  You'll feel like the RHCS web interface is mocking you when you're pressed for time.</li>
<li>Watch the clock.  It's extremely easy to burn a lot of time on this exam if you get stuck on a particular problem.</li>
<li>Double check your entries in the web interface.  Make sure you're doing things in the right order and that you've set up the prerequisites before adding services to the cluster.  If you get it wrong, you could put your cluster into a weird state.</li>
<li>Use man pages.  If you don't mess with GFS a lot, the man pages will save you in a pinch.</li>
</ul>
<p><strong>Red Hat Enterprise Deployment and Systems Management</strong><br />
If there's one exam where time management is critical, it's <a href="http://www.redhat.com/training/courses/ex401/examobjective">EX401</a>.  Importing data into the Satellite Server takes quite a bit of time and there's almost nothing you can do to speed it up.  It probably goes without saying, but as with most long-running tasks, you'll want to run it in screen.  The last thing you'd ever want is to abort the import due to an errant click or CTRL-C (I did it while practicing -- it's aggravating).</p>
<p>There are other test objectives which you can either complete or partially complete while you wait for the import to finish.</p>
<p>Also, take the time to really dig into the Satellite Server web interface while your practicing for the exam.  Knowing where to find the most common configuration items will really save some time when you're in the exam.  You can sometimes get pretty bogged down in the interface so don't forget to use multiple tabs to keep your work organized.</p>
<p>I felt like this exam was the easiest out of the bunch since you could go back and test every single question with good time management.  <em>Did I mention how important time management was on this exam already?</em>  If I forgot to mention it earlier, be sure to focus on time management for this test.</p>
<p>Quick tips for EX401:</p>
<ul>
<li>Time management will make or break you on this test.  Keep an eye on the clock and make sure you've done absolutely every piece of the exam that you can while you wait for the server to do its work.</li>
<li>Scour the web interface.  Keep a mental map in your mind where the big chunks of configuration items are.</li>
<li>Go back and test everything.  If you manage your time well, you should have enough time to verify each and every objective on this exam.</li>
</ul>
<p><strong>Red Hat Enterprise Directory Services and Authentication</strong><br />
At first, <a href="http://www.redhat.com/training/courses/ex423/examobjective">EX423</a> looks pretty straightforward.  Red Hat's authentication configuration tools make LDAP authentication setup pretty easy.  However, this exam comes with a lot of curveballs.</p>
<p>The GUI interface for the Directory Services component is a little frustrating to use.  I found that the GUI stopped responding to keyboard input occasionally unless I clicked on another window and came back.  If you misconfigure the SSL certificates in the interface, your LDAP server is down for the count.  If you don't input the correct data into the setup scripts at the beginning, you might not notice it until much later when it's either too difficult to dig yourself out of the hole or it's too late to start over with a clean configuration.</p>
<p>I didn't feel pressed for time on this exam too much and that was pretty refreshing after taking the EX401 test.  It's extremely critical to watch what you type and click on this exam.  Some mistakes can be quickly corrected while others may require you to blow away the LDAP server configuration and re-provision the whole thing.</p>
<p>Quick tips for EX423:</p>
<ul>
<li>Always watch what you're typing.  A simple mistake can lead to confusion or bigger issues down the road.</li>
<li>Don't ignore the LDIF objectives.  As you practice, you'll find that manipulating LDIF files is a little more involved than you expected.</li>
<li>Practice starting over.  Throw out your Directory Services configuration and get the experience of what it's like to start over and get back in the game.</li>
</ul>
<p><strong>Red Hat Enterprise Security: Network Services</strong><br />
There's no sugar coating it -- <a href="http://www.redhat.com/training/courses/ex333/examobjective">EX333</a> is a beast.  It's a six hour exam broken into two three-hour chunks.  It covers a ton of material and I refer to it as "the RHCE on steroids."  You might argue that I thought it was hard since it was the last test and I was ready to be finished, but I really think this exam is a tough one.</p>
<p>Practicing for the Kerberos and DNS objectives was the hardest for me.  I just couldn't understand Kerberos, no matter how hard I tried.  The realization that I would really have to learn it soon set in.  I dug into the Kerberos design documentation on MIT's site, read the summaries on Wikipedia, and scoured the documentation available in the Kerberos RPM packages.  Once I understood <em>why</em> Kerberos is set up the way it is and <em>why</em> the security measures are present, everything began to come together.  I was able to remember the steps not because I was memorizing them, but because I understood how Kerberos worked.</p>
<p>When you're working through the DNS objectives, keep an eye out for punctuation.  I blew through a good 20 minutes in what seemed like the blink of an eye when I forgot a period in my TSIG key configuration while studying.  Make sure you use the resources available to you, like <code>system-config-bind</code> and sample configs in <code>/usr/share/doc/bind*/examples/</code>.  Get to know commands like <code>dig</code> really well.</p>
<p>If you're overwhelmed by OpenSSL's command line syntax, check out the <code>/etc/pki/tls/misc/CA</code> script.  There are some handy comments at the top of the script that explain how to use it.  You can also pluck OpenSSL commands right out of the script if you need to run them yourself.</p>
<ul>
<li>Don't just memorize.  Do some research to understand how everything fits together.</li>
<li>Manage your time.  DNS and Kerberos have lots of small nuances that can become time sinks when done incorrectly.</li>
<li>Use the available documentation and tools.  Try practicing without study materials so that you're forced to use the docs and tools available within the server.</li>
</ul>
<p><b>Ranking the exams</b><br />
A couple of folks on Twitter asked me to rank the exams from most difficult to least difficult.  Keep in mind that these are a little subjective since I was more familiar with some objectives than others for certain tests.</p>
<ul>
<li><b>EX333 - Enterprise Security: Network Services:</b> a tubload of material and a very long exam</li>
<li><b>EX442 - System Monitoring and Performance Tuning:</b> very difficult to check your work, lots of calculations</li>
<li><b>EX423 - Directory Services and Authentication:</b> not a lot of material to cover, but tons of curveballs</li>
<li><b>EX436 - Storage Management:</b> the web interface made things much easier, lots of documentation available</li>
<li><b>EX401 - Deployment and Systems Management:</b> every objective can be tested, I build RPM's already</li>
</ul>
<p><a href="http://rackerhacker.com/2012/02/13/looking-back-at-the-long-road-to-becoming-a-red-hat-certified-architect/">Looking back at the long road to becoming a Red Hat Certified Architect</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/2012/02/13/looking-back-at-the-long-road-to-becoming-a-red-hat-certified-architect/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<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>6</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>

