Local-Repositories-CentOS

===========================
CentOS-Local-Repository Over LAN
===========================


# yum install httpd
# chkconfig --levels 235 httpd on
# /etc/init.d/httpd start

Building The Repository
-----------------------------------------------

Create a Directory under /var/www/html and copy the downloaded rpm .

# mkdir -p /var/www/html/yum-repo/rpm
# cp /Downloads/*.rpm /var/www/html/yum-repo/rpm/


Install the createrepo package to build the local repository
# yum install createrepo
Build the repo
# createrepo /var/www/html/yum-repo
# ls -l /var/www/html/yum-repo


Client Configuration
---------------------------------------------


# vi /etc/yum.repos.d/svk.repo
[SVK-Local-RePo]
name=SVK-Linux-RePo
failovermethod=priority
baseurl=http://192.168.0.100/yum-repo
enabled=1
gpgcheck=0

#
# yum repolist