Solved

How to install yum on FC6?

Posted on 2009-03-28
21
2,838 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
  • 12
  • 5
  • 4
21 Comments
 
LVL 7

Expert Comment

by:Morne Lategan
Comment Utility
0
 

Author Comment

by:n00b0101
Comment Utility
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
Comment Utility
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
 
LVL 7

Expert Comment

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

Author Comment

by:n00b0101
Comment Utility
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
Comment Utility
0
 
LVL 7

Expert Comment

by:Morne Lategan
Comment Utility
0
 
LVL 7

Expert Comment

by:Morne Lategan
Comment Utility
0
 

Author Comment

by:n00b0101
Comment Utility
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
Comment Utility
Is your system 32bit or 64bit?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 7

Accepted Solution

by:
Morne Lategan earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:n00b0101
Comment Utility
Awesome!  Thanks so much....
0
 

Expert Comment

by:wownetwork
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Do:

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

You need to install the others as well
0
 

Expert Comment

by:wownetwork
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now