LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   yum unable to find ruby for installation (http://www.linuxquestions.org/questions/red-hat-31/yum-unable-to-find-ruby-for-installation-4175419255/)

khandu 07-29-2012 06:07 PM

Ok Guys

So I have two machines which have been build by someone else

Now machine 1 and machine two both have this

Code:

#cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Code:

$ls -lah /etc/yum.repos.d
total 40K
drwxr-xr-x  2 root root 4.0K Jul 24 07:21 .
drwxr-xr-x 98 root root  12K Jul 27 04:02 ..
-rw-r--r--  1 root root  190 Jul 24 07:29 redhat.repo
-rw-r--r--  1 root root  254 Jan 24  2012 rhel-debuginfo.repo

Code:

$cat /etc/yum.repos.d/redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#

$cat /etc/yum.repos.d/rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

But on machine 1 I cannot find ruby to install

Code:

yum search ruby
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Warning: No matches found for: ruby
No Matches found

But on machine 2 I can

Code:

$yum search ruby
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Not root, certificate-based repositories not updated
Unable to read consumer identity
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.
==================================================== Matched: ruby =====================================================
ruby.x86_64 : An interpreter of object-oriented scripting language
ruby-libs.x86_64 : Libraries necessary to run Ruby.

I have done a "yum clean all" as well but didn't work

What is going wrong here?? and why was it different if the same guy did both installs?
Anything to do with "rhnplugin"??

How do I solve this?

More info

I did this

Quote:

vim /etc/yum/pluginconf.d/rhnplugin.conf
enabled = 1
Now I get the error

Quote:

$yum search ruby
Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
This system is not registered with RHN.
RHN Satellite or RHN Classic support will be disabled.
Warning: No matches found for: ruby
No Matches found
So I guess because of

Quote:

This system is not registered with RHN.
I am not getting any updates?? The person forgot to register the machine with RedHat Network??

How can I instruct him to do this post installation ?? (if this is indeed the case)

kbp 07-29-2012 08:31 PM

I believe ruby is in the Optional channel, compare your entitlements between the 2 machines.

<edit> sorry, I was thinking of rubygems </edit>

John VV 07-29-2012 11:46 PM

on both machines run
Code:

su -
yum clean all
rpm --rebuilddb
yum repolist all

then turn on the repo that is off on the one machine that can not find ruby \

Quote:

This system is not registered with RHN.
that is a 100% show stopper

you can NOT progress beyond here UNTIL this machine IS registered
contact red hat sales and add this machine on to your existing license
( if you have one)


All times are GMT -5. The time now is 04:25 AM.