cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up yum repository

Waqar Razi
Regular Advisor

Setting up yum repository

Can some one please provide me instructions on setting up yum repository to download patches and updates from RHN and then configure internal servers to update from this repository.

Thanks in advance.
4 REPLIES
Ivan Ferreira
Honored Contributor

Re: Setting up yum repository

Here are detailes instructions for the repository:

http://www.howtoforge.com/setting-up-a-local-yum-repository-fedora8

Downloading a package from RHN:

http://kbase.redhat.com/faq/docs/DOC-10155

Please, don't forget to assign points.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Setting up yum repository

Shalom,

The important thing is to set up a single system to pull the rpms down in a scripted way.

You want as many packages as possible to be installed.

http://www.howtoforge.com/creating_a_local_yum_repository_centos

http://www.charlescurley.com/yum/repository.html

This can be done with Red Hat Systems. I built a system to do that 2 years ago to update systems on closed (No Internet) systems that were licensed.

If you use this with RHEL, it DOES NOT negate the license requirements.

I actually have scripts and documentation available for my RHEL system. Post back or contact me if you want further assistance.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
westb
Advisor

Re: Setting up yum repository

Hello SEP,
We went from a handful of rhel systems to now over 60 in a short period of time and I'm trying to figure out a good way to update systems without using RH proxy or satellite server.

They all have a subscription so everything is legit; just looking for a cheaper solution.

There are many Xen guests, almost all RHEL5 x86_64 with a handful of i386.

Would you be able to offer some info on your strategy for managing yum repositories ?

Thx.
Steven E. Protter
Exalted Contributor

Re: Setting up yum repository

Shalom,

I maintain two servers, 1 64 bit, one 32 for each major Red Hat release, 2,3,4,5.

They get the patches.

Toward the end of the update cycle when things seem to be the most stable, I cut iso images which I use for mileposts.

I create tested release sets, where I've updated the patch gathering system and run some basic stability tests to make sure things are stable.

Basically you meet the needs of your organization. I also developed a script for getting rid of old releases of rpms from the repository to make sure they do not get too big.

Lets say there are 4 releases of vsftpd during an update cycle. I only really need the newest, so I run a script to clean out the old. Its important to keep the overall repository below 8 GB so it can be carried about on a DVD. At least it was for me.

I have an adaptable system for taking care of this, that consists of scripts I wrote. I believe it has some commercial value though.

SEP
hpuxadmin in gtalk
hpuxconsulting in yahoo messenger
hpuxlinux in twitter. Tweet me if you dare.

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com