LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2010, 03:44 PM   #1
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Rep: Reputation: 0
Crating a YUM repository but suck on the best solution


I was asked to come up with a solution to get updates to our linux computers on a classified network.
I was told to create a local YUM repository and have the clients connect to it. -- Simple right. No at least not to me.

The last time I worked with linux was back on WS3, things have changed. So let me explain my situation.

I have various Red Hat Linux versions -- 5.1, 5.4 & 5.5 that are not connected to the internet and never will be. I need a way to grab updates for those versions and load them.
I have one linux RHEL 5.5 with paid subscription that is allowed to be connected to the internet.
I was going to use this one as my repository to download the packages I need, disconnect from the internet and have my "blessed" machines access it through an nfs share.

Possible solutions were to create a local YUM repository, set up a mirror or perhaps red hat satellite (which may or may not coast more money.)

I need an easy to step by step guide or what would be the best solution. I am getting overwhelmed with all the try this solutions. My boss is losing faith and I starting to feel like an idiot.

Anyway helpful suggestions or guides would be useful.
I thought just creating the local YUM repo and connect it via an NFS share would work but I'm lost.

thanks,
vintage2010
 
Old 12-03-2010, 03:54 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
This site should tell you the basics of how to do it. RHEL 5 and Fedora 6 are roughly the same as far as compatibility of RPM's, so this guide should be fine w/ a little tweaking. http://www.howtoforge.com/setting-up...sitory-fedora8

HTH

Forrest
 
1 members found this post helpful.
Old 12-03-2010, 04:25 PM   #3
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
Thanks
sorry -- my bad. It's the tweaking part that I'm having an issue with.... GRR>
 
Old 12-03-2010, 05:06 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Can you be a little more specific where you are having problems then?

Forrest
 
Old 12-05-2010, 11:57 PM   #5
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
Below are the steps I was given to help me accomplish setting it up.
In red are the steps that are not clear to me.

I created a folder under /var/www/html/yum/rhel5/updates. Then copied all the files in the "workstation" folder of my rhel 5.5 disk.



Steps :

1.

Copy Red Hat Enterprise Linux 5 DVD ISO RHEL5-Client-20070208.0-i386-DVD.iso from Red Hat Network and create a local repository on the local Repository server.

#mkdir -p /var/www/html/cdrom/iso
#mount -o loop /RHEL5-Client-20070208.0-i386-DVD.iso /var/www/html/cdrom/iso
#cd /var/www/html/cdrom -- this is where I would change it to the directory structure mentioned above on my server
#createrepo .
#yum clean all


2. Create a file /etc/yum.repos.d/file.repo which should have the contents as mentioned below :

#cat /etc/yum.repos.d/file.repo
[RHEL-5-Repository]
name=RHEL5 repository
baseurl=file:///cdrom -- how would I change this ? This would be the same file path as mentioned above.
enabled=1
gpgcheck=0


3.

Share with httpd by making sure you have lines like these in your /etc/httpd/conf/httpd.conf file: -- completely confused with this step? I was going to setup a NFS share but maybe this better.??


ServerAdmin root@10.65.6.141
DocumentRoot /var/www/html
ServerName 10.65.6.141


(Where 10.65.6.141 is the local Repository server)

# httpd -t
# service httpd start



4.

Client side configuration:

vi /etc/yum.repos.d/my.repo
----
[RH51-Server]
name= RHEL 5.1 Server Repository
baseurl=http://10.65.6.141/cdrom --- change the "cdrom" to the filepath I setup on my server (the one mentioned above)
enabled=1
gpgcheck=0
----



5.

Verify from client: this seems pretty straight foward.

# yum list
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Available Packages
Deployment_Guide-as-IN.noarch 5.0.0-19
RH51-Server Deployment_Guide-bn-IN.noarch
5.0.0-19 RH51-Server
Deployment_Guide-de-DE.noarch 5.0.0-19
RH51-Server Deployment_Guide-en-US.noarch
5.0.0-19 RH51-Server
Deployment_Guide-es-ES.noarch 5.0.0-19
RH51-Server Deployment_Guide-fr-FR.noarch
5.0.0-19 RH51-Server ========
OR
# yum update
 
Old 12-06-2010, 03:20 PM   #6
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
- closed

I figured out what my problem was and am closing my thread. Thanks for the help
 
  


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
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 11:55 PM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 08:23 PM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 03:19 PM
Feisty Fawn Fonts Suck -- Solution? kajensen Ubuntu 3 06-17-2007 09:46 PM
why does yum suck so much? borrrden Linux - Software 4 07-04-2004 11:38 PM


All times are GMT -5. The time now is 02:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration