LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Local Repositories (http://www.linuxquestions.org/questions/linux-server-73/local-repositories-805970/)

sbabcock23 05-04-2010 08:13 PM

Local Repositories
 
We have the Red Hat Proxy Server which is suppose to allow all our machines to communicate to the Red Hat Network (RHN) and download updates. However, there are some major problems where the machines do not update completely after approving patches.

As a temporary solution I need to create a local repository. I can do this very easily for RHEL5 machines using reposync, but I don't know how to do this for up2date. Is there a command to sync the whole RHEL4 channel from the RHN? After I have done this, can I just edit /etc/sysconfig/rhn/up2date and point this file to the local repository or do I have to share this volume out and mount it and finally do an rpm -Fvh *?

Thanks for your help everyone.

rajivdp 05-06-2010 12:15 AM

You can configure YUM for RHEL3 and RHEL4 machines to use the YUM repository configured for CENTOS. The directory structure is same for RHEL and CENTOS. To know more about CENTOS follow the link

http://www.centos.org/

NOTE: Be carefull dont go for "full update" as this will change the G-NOME panel for RHEL machine to CENTOS and your system will then appear like CENTOS machine. I will suggest to update only rpm packages you needed not as group.

YUM SRC package for RHEL4 will be in the link

http://yum.baseurl.org/download/2.0/yum-2.0.8-1.src.rpm

To configure the YUM repository for RHEL3 and RHEL4

http://www.pinoytux.com/linux/howto-...-yum-on-rhel-4

If you have problem with proxy server for resolving with Domain controller use the following environmental variable in bah shell

export http_proxy=http://username:password@proxy.my.com:8000

Note: Dont make the above entry in any profile as your domain password will expire after few days and it leads to Domain password lock.

Hope this is will give you idea to proceed.

Regards
Rajiv

sbabcock23 05-11-2010 07:06 PM

Hi Rajiv,

I actually did a up2date -d -u of a old RHEL 4 U1 machine and then I install the yum-utilities package. This way I was able to create the yum repository using yum-arch /directory/rhel4repo

Then on the machines I wanted to update I edited the file sources and specified the yum repository.

For any missing dependencies I did a up2date --get packagename.

Thanks for your help,
Steve


All times are GMT -5. The time now is 05:09 PM.