LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 05-04-2010, 09:13 PM   #1
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Rep: Reputation: 15
Question 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.
 
Old 05-06-2010, 01:15 AM   #2
rajivdp
Member
 
Registered: Oct 2008
Posts: 34

Rep: Reputation: 17
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://usernameassword@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
 
Old 05-11-2010, 08:06 PM   #3
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
  


Reply

Tags
up2date, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 11:43 AM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 08:20 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
Setting Up Local Ubuntu Repositories AntWarrior Ubuntu 2 04-22-2005 07:49 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 08:11 PM


All times are GMT -5. The time now is 12:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration