<?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>Linux For All &#187; repository</title>
	<atom:link href="http://www.linux4all.in/tag/repository/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux4all.in</link>
	<description>Making Linux Usable For All From Newbies To Techies</description>
	<lastBuildDate>Wed, 04 Aug 2010 05:09:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating Your own Yum Repository</title>
		<link>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/</link>
		<comments>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 18:28:52 +0000</pubDate>
		<dc:creator>Kunal Gautam</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://linux.tech-nologic.info/?p=11</guid>
		<description><![CDATA[Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.Install A Yum based repository on your Linux Box using this guide :)]]></description>
			<content:encoded><![CDATA[<p><strong>YUM</strong> or Yellowdog Updater Modified is an interactive, automated update program which can be used for maintaining system using rpm. Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages.<br />
Yum makes it easier to maintain groups of machines without having to manually update each one using rpm.<br />
<span id="more-11"></span><br />
<strong>What is a Repository ?</strong><br />
A repository is a collection of list of rpm[s]. It contain various information regarding the rpm like its dependencies etc.</p>
<p><strong>Why to use Yum if I can install RPM using rpm command?</strong><br />
Well if you want to install RPM you have to make sure that its dependencies are also installed . But this is not in the case of YUM you can simply install package with its dependencies. YUM take care of your all install things . Also update feature is not available in the rpm installation method but it is available in yum.</p>
<p><strong>Here are some key features of &#8220;Yum&#8221;:</strong><br />
• Multiple Repositories<br />
• Simple config file<br />
• Correct dependency calculation<br />
• Fast operation<br />
• rpm-consistent behavior<br />
• comps.xml group support, including multiple repository groups<br />
• Simple interface</p>
<p style="text-align: center;"><strong>Starting With Creating Your Own Repository [Server Side Configuration]</strong></p>
<p><strong>Step First : Check Prequisites</strong><br />
-Have Your Distro CD/DVD</p>
<p>-Check if you have free space on your Hard Disk or not [Total space required vary from Distro to Distro]</p>
<p><strong>Step Two : Copy Disc to Hard Disk</strong><br />
First mount your CD/DVD  and copy it to hard disk<br />
cp -avr /cd/dvd/mount/point/   /destination/directory/</p>
<p><strong>Step Three : Intalling CreateRepo Package</strong><br />
Now go to your directory where you copied the files and search for createrepo-*.rpm file * may be different from version to version and system architecture<br />
Install that rpm using rpm command<br />
install using following command<br />
rpm -ivh &#8211;aid createrepo-*.rpm</p>
<p>Repeat this step with your all you cd .<br />
Note:- If you want install Repository on your network thrugh ftp or http upload in their respective default directories i.e /var/ftp/pub for ftp server and /var/www/html for http server.</p>
<p><strong>Step four: Run createrepo</strong><br />
Go to the directory where you copied the file and run the createrepo command<br />
createrepo -v .<br />
[please note that “.” {dot} after that command as we are in present directory ]</p>
<p>Now you have done all thing.<br />
Now we will see Client side setting</p>
<p style="text-align: center;"><strong>Client Side Setting For YUM</strong></p>
<p>Create a repo file in /etc/yum.repos.d/ directory [ you can name anything to ur file make sure a .repo extension is added later on]<br />
vim /etc/yum.repos.d/my.repo</p>
<p>add following date in that file</p>
<blockquote><p>[Myrepo]<br />
name=Any name you want to put<br />
baseurl=file:///destination/directory/<br />
enabled=1<br />
gpgcheck=0</p></blockquote>
<p>The first line is alias given for your repository . This help to indicate/find that from which repository the package is available.<br />
Second line is name which you can put any thing<br />
Next comes baseurl<br />
base url supports different protocols like file:// ftp:// httpd:// etc. if you are running repository from local pc then give absolute path after file:// . for ftp give ftp://server_ip_or_domain/pub_dir_or_accessable_dir or http://server_ip_or_domain/dir<br />
next line is enabled this specify if yum should enable that repo server for installtion or not 1 is for enable and 0 is for disable<br />
gpgcheck is for checking gpg key. as I don’t required it so I disabled it if you enabled it then you hav to add one more line after that<br />
gpgkey=/your/path/to/key</p>
<p>after this save that repo file and run following command<br />
yum clean all [ will clean yum database ]<br />
yum list [will list the files / packages available on that directory ]</p>
<p>If you find some difficulty in using it please feel free to contact us</p>
<p><em><strong>Note:- SElinux or Firewall may conflict sometimes [ for ftp and http service ]<br />
Note:- I used RHEL server 5 edition . This process is same for RHEL 4,5 FC [versions I don’t know]</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux4all.in/2008/06/13/creating-your-own-yum-repository/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
