• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2899
  • Last Modified:

How to install yum on FC6?

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
n00b0101
Asked:
n00b0101
  • 12
  • 5
  • 4
1 Solution
 
Morne LateganCommented:
0
 
n00b0101Author Commented:
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
 
Morne LateganCommented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Morne LateganCommented:
To use the src rpm, you have to use rpmbuild to build it into a binary rpm fist.
0
 
n00b0101Author Commented:
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
 
Morne LateganCommented:
0
 
Morne LateganCommented:
0
 
n00b0101Author Commented:
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
 
Morne LateganCommented:
Is your system 32bit or 64bit?
0
 
Morne LateganCommented:
0
 
n00b0101Author Commented:
Awesome!  Thanks so much....
0
 
wownetworkCommented:
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
 
Morne LateganCommented:
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
 
wownetworkCommented:
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
 
Morne LateganCommented:
Do:

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

You need to install the others as well
0
 
wownetworkCommented:
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
 
wownetworkCommented:
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
 
Morne LateganCommented:
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
 
wownetworkCommented:
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
 
Morne LateganCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 12
  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now