<?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>Sam Pierson&#039;s Blog &#187; yum</title>
	<atom:link href="http://sampierson.com/blog/tag/yum/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a password protected YUM repository</title>
		<link>http://sampierson.com/blog/system-administration/creating-a-password-protected-yum-repository/</link>
		<comments>http://sampierson.com/blog/system-administration/creating-a-password-protected-yum-repository/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 17:48:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">urn:uuid:e29b41fc-986e-4090-9cb5-b64d90ade04f</guid>
		<description><![CDATA[Setup http authentication in httpd.conf file (encouraged rather than using .htaccess):

&#60;Directory /var/www/repo&#62;
    AuthType Basic
    AuthName &#34;Password Required&#34;
    AuthUserFile /etc/apache2/passwords/repo
    Require valid-user
&#60;/Directory&#62;

Create auth user password file:

htpasswd -c /etc/apache2/passwords/repo repouser

Restart apache.
Create repo:

yum install createrepo # or equivalent
mkdir /var/www/repo
cp *.rpm /var/www/repo
createrepo /var/www/repo

To use the repo, on the [...]]]></description>
			<content:encoded><![CDATA[<p>Setup http authentication in httpd.conf file (encouraged rather than using .htaccess):</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Directory</span> /var/www/repo<span style="color: #000000; font-weight: bold;">&gt;</span></span>
    AuthType Basic
    AuthName &quot;Password Required&quot;
    AuthUserFile /etc/apache2/passwords/repo
    Require valid-user
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Directory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Create auth user password file:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">htpasswd -c /etc/apache2/passwords/repo repouser</pre></div></div>

<p>Restart apache.</p>
<p>Create repo:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">yum install createrepo # or equivalent
mkdir /var/www/repo
cp *.rpm /var/www/repo
createrepo /var/www/repo</pre></div></div>

<p>To use the repo, on the client system in /etc/yum.repo.d/&lt;reponame&gt;.repo, have:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">baseurl=http://repouser:password@server/repo</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/creating-a-password-protected-yum-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
