Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-01-2009, 07:48 AM   #1
LQ Newbie
Registered: Jul 2008
Location: Bristol, UK
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Trying to install YUM on CentOS...

Hi everyone,

I'm trying to install YUM on CentOS 5, so I logged in and typed:

rpm -Uvh
And this gives me the following error:

error: Failed dependencies:
        yum-fastestmirror is needed by yum-3.2.19-18.el5.centos.noarch
So I typed in the following:

rpm -Uvh
And this resulted in...

error: Failed dependencies:
        yum >= 3.0 is needed by yum-fastestmirror-1.1.16-13.el5.centos.noarch
It seems that one package relies on the other and therefore I can't install either of them!

Could anyone please advise me on what to do here?

Old 09-01-2009, 08:15 AM   #2
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: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
yum is installed with CentOS by default so I'm curious why you think you need to install it?

Try typing "rpm -qa |grep yum" to see which if any yum packages are installed. It may simply be you need a newer version which you could get by typing "yum update yum".

Anyway ignoring all that the way to resolve cross dependencies like the one you're seeing is simply to include both packages in the same command:

rpm -Uvh
That way it knows the dependency is being resolved during the install of the packages.
Old 09-01-2009, 08:51 AM   #3
LQ Newbie
Registered: Jul 2008
Location: Bristol, UK
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Hi jlightner,

Yeah that's what I thought, but there was no sign of Yum on there when I first logged in. FWIW, it's a VPS with Plesk installed on it. Perhaps the provider of the server thought it wise to remove the default Yum install before letting me loose on it...

Anyway, your suggestion worked perfectly, and I now have Yum installed. Thanks for your help



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with Yum update-install-list on CentOS 5.2 reyhaneh.emi Linux - Software 1 05-20-2009 02:25 PM
yum install php-imap doesn't work on CentOS? guest Linux - Server 10 04-29-2009 02:39 AM
Cant install bugzilla on Centos using YUM ALInux Linux - Software 6 06-01-2008 04:41 PM
i am getting no argument nothing to do when i try yum install mplayer on centos 4.4 Laurkin Member Intro 3 06-11-2007 04:09 AM
trying to install YUM on CentOS MrSako Linux - Newbie 5 07-20-2006 08:36 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration