# installing Redhat Repository server

**URL:** <https://community.unix.com/t/installing-redhat-repository-server/309564>\
**Category:** Red Hat\
**Created:** [May 3, 2012, 3:59pm UTC](https://community.unix.com/t/installing-redhat-repository-server/309564 "2012-05-03T15:59:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby320](https://community.unix.com/letter_avatar/bobby320/32/6_22734026db12803ebb3e059622ac3534.png) [@bobby320](https://community.unix.com/u/bobby320)\
**Post date:** [May 3, 2012, 3:59pm UTC](https://community.unix.com/t/installing-redhat-repository-server/309564/1 "2012-05-03T15:59:10Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![sds9985](https://community.unix.com/letter_avatar/sds9985/32/6_22734026db12803ebb3e059622ac3534.png) [@sds9985](https://community.unix.com/u/sds9985)\
**Post date:** [May 4, 2012, 1:44am UTC](https://community.unix.com/t/installing-redhat-repository-server/309564/2 "2012-05-04T01:44:48Z")

</div>

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](http://spacewalk.redhat.com/). It's fully documented at [Spacewalk: Free & Open Source Linux Systems Management](http://spacewalk.redhat.com/documentation.html). 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.

---

<div class="post-metadata">

**Author:** ![admin\_xor](https://community.unix.com/user_avatar/community.unix.com/admin_xor/32/2337_2.png) [@admin\_xor](https://community.unix.com/u/admin_xor)\
**Post date:** [May 4, 2012, 4:59pm UTC](https://community.unix.com/t/installing-redhat-repository-server/309564/3 "2012-05-04T16:59:55Z")

</div>

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

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

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

```

1. 

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

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

```

---

<div class="post-metadata">

**Author:** ![sutanu\_ds](https://community.unix.com/letter_avatar/sutanu_ds/32/6_22734026db12803ebb3e059622ac3534.png) [@sutanu\_ds](https://community.unix.com/u/sutanu_ds)\
**Post date:** [May 9, 2012, 2:47am UTC](https://community.unix.com/t/installing-redhat-repository-server/309564/4 "2012-05-09T02:47:17Z")

</div>

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--

```nohighlight
#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---

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

```
