Wednesday, September 17, 2008

Creating Local rpm Repository for yum update.

1) Install the createrepo rpm from installation media

#rpm -ivh createrepo-.rpm

2) Dumping all the rpm file from the installation media

#cp -av

3) Then create the repo with the below command

#createrepo

4) Now create a .repo file in "/etc/yum.repo.d/" folder as below.

#vi /etc/yum.repos.d/local.repo
[Local]
name=local repo
failovermethod=priority
baseurl=file:///var/repo
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=0
gpgkey=

5) Now for chaking run the command as

#yum list

Now creating Group of the rpm files

#createrepo -g
E.G. createrepo -g /media/Fedora\ 8\ i386\ DVD/repodata/Fedora-8-comps.xml /var/repo/ (As in my installation)

No comments:

Powered By Blogger