<?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; cpan</title>
	<atom:link href="http://rackerhacker.com/tag/cpan/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>CPAN: Automatically install dependencies without confirmation</title>
		<link>http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/</link>
		<comments>http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 01:44:51 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=661</guid>
		<description><![CDATA[I enjoy using CPAN because it installs Perl modules with a simple interface, fetches dependencies, and warns you when things are about to end badly. However, one of my biggest complaints is when it constantly confirms installing dependencies. While this is an annoyance if you have to install a module with many dependencies (or if [...]<p><a href="http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/">CPAN: Automatically install dependencies without confirmation</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>I enjoy using <a href="http://www.cpan.org/">CPAN</a> because it installs Perl modules with a simple interface, fetches dependencies, and warns you when things are about to end badly.  However, one of my biggest complaints is when it constantly confirms installing dependencies.  While this is an annoyance if you have to install a module with many dependencies (or if you're working with CPAN on a new server), you can tell CPAN to automatically confirm the installation of dependencies.</p>
<p>To do this, simply bring up a CPAN shell:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">perl -MCPAN -e shell</pre></div></div>

<p>Run these two commands in the CPAN shell:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">o conf prerequisites_policy follow
o conf commit</pre></div></div>

<p>Now, exit the CPAN shell, start the CPAN shell, and try to install a module that you need.  All dependencies will be automatically confirmed, downloaded and installed.</p>
<p>The first line sets your dependency policy to <em>follow</em> rather than <em>ask</em> (the default).  The second line tells CPAN to write the changes to your user's CPAN configuration file to make them permanent.</p>
<p>A big thanks goes out to <a href="http://lee.hambley.name/about">Lee Hambley</a> for the <a href="http://lee.hambley.name/2008/05/cpan-automatically-accept-dependencies">fix</a>.</p>
<p><strong>WARNING:</strong> <em>There are some occasions where you would not want to install dependencies from CPAN.  Examples of these situations are when your operating system's package manager (yum, up2date, apt-get, aptitude, etc) has installed Perl modules in an alternative location or when you have manually installed modules in a non-standard way.  I'm a Red Hat guy, and these problems rarely arise on Red Hat/Fedora systems, but your mileage may vary.</em></p>
<p><a href="http://rackerhacker.com/2009/01/01/cpan-automatically-install-dependencies-without-confirmation/">CPAN: Automatically install dependencies without confirmation</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/01/01/cpan-automatically-install-dependencies-without-confirmation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

