LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-25-2012, 10:57 AM   #1
lce411
Member
 
Registered: Jul 2012
Posts: 50

Rep: Reputation: Disabled
Yum repo not updating?


I have been trying to do some patching on our RHEL servers and it says that puppet needs ruby 1.8.7 installed, to resolve a dependency issue. When I checked for Ruby 1.8.7 it didn't show up as one of the packages that is set to be installed. Are my repo's not current? If not, is there a way to manually tell them to rescan for a current list of packages?

Last edited by lce411; 10-25-2012 at 10:58 AM.
 
Old 10-25-2012, 11:15 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
RHEL is a little different in the way they do things. They start with an upstream base version of a package (e.g. Ruby 1.8.5 on RHEL5 or 1.8.7 on RHEL6) and always stay with that upstream base version but backport bug and security fixes into their version and add extended versioning.

So on RHEL5 if you ran "yum list ruby" you might see:
Available Packages
ruby.x86_64 1.8.5-24.el5 rhel-x86_64-server-5

and on RHEL6:
Available Packages
ruby.x86_64 1.8.7.352-7.el6_2 rhel-x86_64-server-6

If the version of Puppet you downloaded didn't come from RedHat's repositories then it would likely be the latest version and might have a dependency on 1.8.7 as you indicated. As seen above 1.8.7 is NOT available on RHEL5 (from RedHat repositories). Your choice then is either:
1) Try to find a version of Puppet that IS designed for RHEL5 (e.g. at Dag Wieers site: http://pkgs.repoforge.org/puppet/) and use that.
2) Replace the RedHat provided version of ruby with a later one from a site like Dag Wieers'. Note that doing this might require other dependencies so I'd probably go with the first option instead.

Of course you could download the source and compile your own but you'd want to make sure that the source package itself allowed you to use the earlier version of Ruby.

Also you should usually use yum to see if the package you want is provided by RHEL. (i.e. "yum list puppet"). It is always best to use the provided package as it helps your support. In this case I don't think RHEL does.
 
Old 10-25-2012, 02:38 PM   #3
lce411
Member
 
Registered: Jul 2012
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MensaWater View Post
RHEL is a little different in the way they do things. They start with an upstream base version of a package (e.g. Ruby 1.8.5 on RHEL5 or 1.8.7 on RHEL6) and always stay with that upstream base version but backport bug and security fixes into their version and add extended versioning.

So on RHEL5 if you ran "yum list ruby" you might see:
Available Packages
ruby.x86_64 1.8.5-24.el5 rhel-x86_64-server-5

and on RHEL6:
Available Packages
ruby.x86_64 1.8.7.352-7.el6_2 rhel-x86_64-server-6

If the version of Puppet you downloaded didn't come from RedHat's repositories then it would likely be the latest version and might have a dependency on 1.8.7 as you indicated. As seen above 1.8.7 is NOT available on RHEL5 (from RedHat repositories). Your choice then is either:
1) Try to find a version of Puppet that IS designed for RHEL5 (e.g. at Dag Wieers site: http://pkgs.repoforge.org/puppet/) and use that.
2) Replace the RedHat provided version of ruby with a later one from a site like Dag Wieers'. Note that doing this might require other dependencies so I'd probably go with the first option instead.

Of course you could download the source and compile your own but you'd want to make sure that the source package itself allowed you to use the earlier version of Ruby.

Also you should usually use yum to see if the package you want is provided by RHEL. (i.e. "yum list puppet"). It is always best to use the provided package as it helps your support. In this case I don't think RHEL does.
Thanks for the info. Could someone tell me the address or location of the current Ruby Works repo? I just want to verify it against the one were are using and make sure it's not incorrect.
 
  


Reply



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 repo - question about updating kbscores Linux - Enterprise 9 11-15-2011 08:08 AM
Updating Linux 6.0 - errors in repo solarcellguy Linux - Enterprise 2 07-29-2011 02:51 PM
some yum repo help please cwc Fedora 6 09-24-2009 07:35 PM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

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

All times are GMT -5. The time now is 12:32 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