Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to install yum on FC6?

Posted on 2009-03-28
21
Medium Priority
?
2,867 Views
Last Modified: 2013-12-16
Running a yum command from the prompt, I get this:
-bash: yum: command not found

So, I guess it's not installed?  If I run locate yum, I get this:

/etc/yum.repos.d
/etc/yum.repos.d/fedora-core.repo
/etc/yum.repos.d/fedora-development.repo
/etc/yum.repos.d/fedora-extras-development.repo
/etc/yum.repos.d/fedora-extras.repo
/etc/yum.repos.d/fedora-legacy.repo
/etc/yum.repos.d/fedora-updates-testing.repo
/etc/yum.repos.d/fedora-updates.repo


How can I go about installing it so that I can actually use it?
0
Comment
Question by:n00b0101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 5
  • 4
21 Comments
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011274
0
 

Author Comment

by:n00b0101
ID: 24011362
Not really....  I downloaded it, but am now getting other errors...

Trying to install the package:


rpm -Uvh yum-3.2.22-0.src.rpm
warning: yum-3.2.22-0.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
   1:yum                    warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
warning: user skvidal does not exist - using root)
warning: group skvidal does not exist - using root
########################################### [100%]



Then, yum update php:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Oct  1 2006, 17:59:36)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq


So, thinking I would install it and try again: rpm -e yum
error: package yum is not installed
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011419
I'm not sure whether it ships with FC6, but you can check your FC6 cds for the yum rpm that is compiled for it. If your cdrom is mounted under /cdrom, do:

find /cdrom -iname \*yum\*

If it finds the rpm there, install it with rpm -Uvh /cdrom/path/to/yum.rpm
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011426
To use the src rpm, you have to use rpmbuild to build it into a binary rpm fist.
0
 

Author Comment

by:n00b0101
ID: 24011434
I wish I could.... It's a VPS server, so no CDs.  I tried:  

rpmbuild yum-3.2.22-0.src.rpm

But, got:
-bash: rpmbuild: command not found


0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011447
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011461
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24011462
0
 

Author Comment

by:n00b0101
ID: 24011583
I installed all of the dependencies, etc., but just get this:


yum update php
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: wrong ELF class: ELFCLASS32

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Oct  1 2006, 17:59:36)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24012027
Is your system 32bit or 64bit?
0
 
LVL 7

Accepted Solution

by:
Morne Lategan earned 2000 total points
ID: 24012035
0
 

Author Closing Comment

by:n00b0101
ID: 31563958
Awesome!  Thanks so much....
0
 

Expert Comment

by:wownetwork
ID: 24425822
Hi,

I believe my service provider is the same as above - I have a VPS with Network Solutions and they provided me with a BLANK VPS.

I followed your 64 bit link.  I wget all the YUM links (3) and then:

[root@******* ~]# rpm -ivh yum*
warning: yum-3.0-6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: yum-3.2.0-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
error: Failed dependencies:
        python-elementtree is needed by yum-3.0-6.noarch
        python-sqlite is needed by yum-3.0-6.noarch
        rpm-python is needed by yum-3.0-6.noarch
        urlgrabber is needed by yum-3.0-6.noarch
        dbus-python is needed by yum-updatesd-3.0-6.noarch
        pygobject2 is needed by yum-updatesd-3.0-6.noarch

Any advice in further installing?
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24455722
you need to also fetch those dependencies:

python-elementtree
python-sqlite
...
etc

And install them as well. They will probably have dependencies as well, so you'll need those as well. Continue in that fashion until finally it comes up saying installed successfully. Brings back my worst memories from the days before apt and yum :)
0
 

Expert Comment

by:wownetwork
ID: 24455858
Hi the following is in my root folder (afte i wget everything as you said:

dbus-python-0.70-6.x86_64.rpm    
epel-release-5-2.noarch.rpm      
plesk-license.key    
pygobject2-2.12.1-1.fc6.x86_64.rpm    
python-elementtree-1.2.6-5.x86_64.rpm    
python-sqlite-1.1.7-1.2.1.x86_64.rpm      
python-urlgrabber-2.9.9-2.noarch.rpm      
remi-release-5-7.el5.remi.noarch.rpm      
rpm-python-4.4.2-32.x86_64.rpm
yum-3.0-6.noarch.rpm    
yum-3.2.0-1.src.rpm
yum-metadata-parser-1.0-8.fc6.x86_64.rpm
yum-updatesd-3.0-6.noarch.rpm

I still get this error:

[root@02c1a05 ~]# rpm -ivh yum*
warning: yum-3.0-6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: yum-3.2.0-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
error: Failed dependencies:
        python-elementtree is needed by yum-3.0-6.noarch
        python-sqlite is needed by yum-3.0-6.noarch
        rpm-python is needed by yum-3.0-6.noarch
        urlgrabber is needed by yum-3.0-6.noarch
        dbus-python is needed by yum-updatesd-3.0-6.noarch
        pygobject2 is needed by yum-updatesd-3.0-6.noarch

Arrggggg....
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24455913
Do:

rpm -ivh yum* python* rpm* urlgrabber* dbus* pyg*

You need to install the others as well
0
 

Expert Comment

by:wownetwork
ID: 24457831
Well it looks like I am getting there.

But still getting below:

[ ] # rpm -ivh yum* python* rpm* urlgrabber* dbus* pyg*

error: File not found by glob: urlgrabber*
warning: yum-3.0-6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: yum-3.2.0-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
error: Failed dependencies:
        libdbus-glib-1.so.2()(64bit) is needed by dbus-python-0.70-6.x86_64

What is the warning: yum-3 mean? NOKEY ... ??

I guess I downloaded the wrong urlgrabber and libdbus-glib-1?

These are in my root:
dbus-python-0.70-6.x86_64.rpm
python-urlgrabber-2.9.9-2.noarch.rpm      
(you can also see what I wget before in my root above comment)

Thanks for your HELP!
0
 

Expert Comment

by:wownetwork
ID: 24467199
Ok.... getting there...

But still::

[root@******* ~]# rpm -ivh yum*
warning: yum-3.0-6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: yum-3.2.0-1.src.rpm: Header V3 DSA signature: NOKEY, key ID 69886cc7
Preparing...                ########################################### [100%]
   1:yum-metadata-parser    ########################################### [ 25%]
   2:yum                    ########################################### [ 50%]
   3:yum-updatesd           ########################################### [ 75%]
error: cannot create %sourcedir /usr/src/redhat/SOURCES

anyone?
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24467669
Remove the .src.rpm from the directory:

rm yum-3.2.0-1.src.rpm

The .src.rpm package is a source rpm and you don't need it to run yum.

0
 

Expert Comment

by:wownetwork
ID: 24467696
HI Thanks!

I have yum-3.0-6 now installed.

Now I tried to upgrade my PHP but here is my dilema:

[root@****** ~]# yum upgrade php
Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Could not find update match for php
No Packages marked for Update/Obsoletion
[root@****** ~]# rpm -q php
php-5.1.6-3

[root@******* ~]# php -v
PHP 5.1.6 (cli) (built: Oct  4 2006 11:14:16)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with the ionCube PHP Loader v3.1.28, Copyright (c) 2002-2007, by ionCube Ltd.

So the problem is:
Reading repository metadata in from local files
Could not find update match for php

No matter what I do I even tried this:
yum !! enablerepo=remi update php

It simply isn't upgrading php from 5.1.6 >> is this b/c Fedora 6 (core) can't upgrade above 1.5.6?
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24467739
Glad that got you sorted :)

Sorry, but I don't really work with Fedora at all. So you'll have to try to search around google to see if there's a newer package available.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question