<?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>fabiolagana.net &#187; RubyGems</title>
	<atom:link href="http://blog.fabiolagana.net/category/rubygems/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fabiolagana.net</link>
	<description>640 Kb should be enough memory for anybody</description>
	<lastBuildDate>Mon, 26 Oct 2009 13:17:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HOWTO: installing, updating and removing rubygems</title>
		<link>http://blog.fabiolagana.net/howto-installing-updating-removing-rubygems/</link>
		<comments>http://blog.fabiolagana.net/howto-installing-updating-removing-rubygems/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 01:00:47 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[RubyGems]]></category>
		<category><![CDATA[Howto]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=8</guid>
		<description><![CDATA[


&#160;Powered by Max Banner Ads&#160;Searching
Installing a gem in fair enough but what if you don&#8217;t know what it&#8217;s called?
Well, one way of finding a gem is to look at the rubygems homepage at http://rubyforge.org/projects/rubygems/
However, this can be a bit overwhelming and may be a long way around if you know what you are looking for. [...]]]></description>
			<content:encoded><![CDATA[<h2>Searching</h2>
<p>Installing a gem in fair enough but what if you don&#8217;t know what it&#8217;s called?</p>
<p>Well, one way of finding a gem is to look at the rubygems homepage at <a class="external free" title="http://rubyforge.org/projects/rubygems/" rel="nofollow" href="http://rubyforge.org/projects/rubygems/" onclick="pageTracker._trackPageview('/outgoing/rubyforge.org/projects/rubygems/?referer=');">http://rubyforge.org/projects/rubygems/</a></p>
<p><span id="more-8"></span>However, this can be a bit overwhelming and may be a long way around if you know what you are looking for. In cases like these you can search a remote list of gems for the phrase you are after:</p>
<pre>gem search mysql --remote gems.rubyforge.org</pre>
<p>This will give a list of gems with the word &#8216;mysql&#8217; in them.</p>
<p><a name="Installing"></a></p>
<h2>Installing</h2>
<p>Installing a particular gem is very simple:</p>
<pre>sudo gem install mysql</pre>
<p>That will, not unsurprisingly, install the gem &#8216;mysql&#8217; (which is the ruby bindings for MySQL, not MySQL itself!).</p>
<p>The example above will give a choice of versions to install. On a Linux VPS simply choose the latest &#8216;ruby&#8217; version. So at the time of writing I would select option (3) mysql 2.7 (ruby).</p>
<p>Often a gem will have several dependencies with it. To stop the install asking if you want the dependencies to be installed use this:</p>
<pre>sudo gem install mysql --include-dependencies</pre>
<p><a name="Outdated"></a></p>
<h2>Outdated</h2>
<p>To get a list of gems that are now outdated (they have a newer version available), use this command:</p>
<pre>gem outdated</pre>
<p><a name="Updating"></a></p>
<h2>Updating</h2>
<p>To update all the installed rubygems is just as straightforward:</p>
<pre>gem update</pre>
<p>However, you may not want to update all at once, in which case specify the gem:</p>
<pre>gem update mysql</pre>
<p><a name="Clean"></a></p>
<h2>Clean</h2>
<p>This will remove outdated versions of gems that are installed, leaving the new updated version installed:</p>
<pre>gem clean</pre>
<p>This will leave a nice and shiny up to date rubygems install.</p>
<h2>Removing</h2>
<p>At some point you may want to get rid of a gem completely. No problem:</p>
<pre>sudo gem uninstall mysql</pre>
<p><a name="Listing_installed_gems"></a></p>
<h2>Listing installed gems</h2>
<p>To get a list of locally installed gems, issue this command:</p>
<pre>gem list</pre>
<p>That will give an overview of the gems you have installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/howto-installing-updating-removing-rubygems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->