installing Redhat Repository server

Hello,

can someone please assist me userguide to setup simple Redhat yum Repository server with out using redhat satellite server. So all client will be pointing to this repository server to install rpm's.

Thanks,

The free version of RHN Satellite that does not require paying for an entitlement from Red Hat is called Spacewalk, at Spacewalk: Free & Open Source Linux Systems Management. It's fully documented at Spacewalk: Free & Open Source Linux Systems Management. It's normally used to support Fedora channels, but you can upload RHEL distributions or any other RPMS to it and set up channels.

Without a valid Satellite entitlement, you won't be able to subscribe to Red Hat Network to get the ongoing additions/changes/errata for RHEL, but you can load static content.

  1. Copy the RPMs from the installation DVDs to the /var/www/html/el6/6/os directory

The apache web server should be running; now, create a repository header by issuing the below command:

createrepo /var/www/html/el6/6/os

Now, in the client machine, create a file /etc/yum.repos.d/el.repo to have it look like:

[Local-Repository]
name=Local Repository
baseurl=http://10.0.1.101/repo
enabled=1
gpgcheck=0

make sure the repository file name in both server and client pc are same and try to do with ftp instead of http
such as
In client--

#vim  /etc/yum.repos.d/server1.repo
[Localrepo]
name=local repo
baseurl=ftp://192.168.0.254/pub/Packages
enable=1
gpgcheck=0
:wq!

In server---

vim /etc/yum.repos.d/server1.repo
[Localrepo]
name=local repo
baseurl=ftp:///var/ftp/pub/Packages
enable=1
gpgcheck=0
:wq!