Required Packages:
Apache web server,rsync and createrepo packages must be installed in the server before starting the whole process,
Installation Method: (Server-Side Settings)
I have used CentOS 5.3 as the base operating system, this repository is workable for CentOS 5.x versions
Login to the console as root and type the following commands
Code: Select all
$ mkdir -p /var/www/html/centos/5/os/i386
$ mkdir -p /var/www/html/centos/5/updates/i386
Code: Select all
$ createrepo /var/www/html/centos/5/os/i386/
$ cp -r /var/www/html/centos/5/os/i386/* /var/www/html/centos/5/updates/i386
Code: Select all
$ rsync -avrt rsync://centos.arcticnetwork.ca/centos/5/updates/i386 \ --exclude=debug/ /var/www/html/centos/5/updates
Client-Side Settings:
On client side, rename the files present in /etc/yum.repos.d which are Centos-Base.repo and Centos-Media.repo
to *.old and create a new file named localCentos-Base.repo and copy the following in that
Code: Select all
# vi /etc/yum.repos.d/localCentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://ReposerverIP/centos/$releasever/os/$basearch/
gpgcheck=0
[update]
name=CentOS-$releasever - Updates
baseurl=http://ReposerverIP/centos/$releasever/updates/$basearch/
gpgcheck=0
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://ReposerverIP//centos/$releasever/updates/$basearch/
gpgcheck=0
enabled=0
everything that seems to be true is not always true.