LinuxQuestions.org
Visit Jeremy's Blog.
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 11-24-2006, 10:53 AM   #1
dade_85
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Local Repository RedHat ES4


Hello!
I need for my work to install very often a red hat es 4...
Every time i need connect to internet and spent a lot of time witing the complete update because my connection is too bad...
Every one can help me sayng how i can create e local repository of the red hat package?

I use up2date for connect to the rh server!
 
Old 11-24-2006, 11:54 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
You can use yum and createrepo for this, or up2date. The caveat is you need to download the updated rpm packages or install them from the update media into a common directory. You can also use a 'clone' repo to get the updates, but since you state you have bad connection then this might not be a viable solution. The instructions below are how to setup and use yum and createrepo.

Get and install both the yum and createrepo rpm packages from Dag Wieers's site; http://dag.wieers.com/packages/

Next create your local repo location (lets call it /RHEL4 for now) on the hard drive and copy all the rpm files from the CD/DVD media or up2date site to this common location. Then from that location type something like; createrepo /RHEL4

When done you can then use this with yum but first you need to create a RHEL-MEDIA.repo file in /etc/yum.repo.d directory;

[rhel-media]
name=Red Hat-$releasever - Media
baseurl=file:///RHEL4
gpgcheck=1
enabled=0

When done you can now use yum and your local repo for updates and installing packages by typing something like; yum -y update

Every so often (once a month for example) re-load (download the new updates) and clean up (remove the older update packages when newer versions are available) your local repo then re-run the createrepo command.

By the way depending on how up2date is configured, the downloaded updated rpm packages may be in the /var directory tree, check. if yes then you can use this location instead of the /RHEL4 directory, just make the changes as required.
 
  


Reply


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
can i create a local yum repository? Sharaz Linux - General 5 01-21-2008 02:51 PM
Up2date and local repository Deviathan Red Hat 5 12-14-2006 09:57 AM
Faluire to create local repository JackieBrown Debian 1 08-22-2006 07:39 PM
local repository fails robingazi Debian 2 08-21-2006 09:33 AM
RedHat ES4- Can't Ping Gateway brigo Linux - Networking 3 02-09-2006 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration