LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-18-2010, 05:21 AM   #1
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Rep: Reputation: 5
Yum not finding/listing installed rpms - missing dependency


Hello,

I have a disk of all the rpms (just the rpms) of RH Ent. 5.1. I needed to intall some packages from it. For that I created a local repository. Following is what I did:

1. mounted DVD in /media
2. Issued createrepo on /media (Now the packages are in /media/mycdrom/RHE5Rpms and the repodata is in /media)
3. I added the following in the /etc/yum.conf
[MyPackages]
name=Packs
baseurl=file:///media
enabled=1

Now when I try to install, for example, qt4-devel, it can resolve the dependencies for one level. For example, it resolves libpng-devel (which is needed by qt4-devel), but it fails to resolve libpng (which is needed by libpng-devel). But libpng package is both available in the DVD and is already installed on the machine. Following is the tail of error messages I get after issuing the command 'yum install qt4-devel'

.
.
.
.
Error: Missing Dependency: libpng = 2:1.2.10-7 is needed by package libpng-devel
Error: Missing Dependency: mesa-libGLU = 6.5.1-7.2.el5 is needed by package mesa-libGLU-devel
Error: Missing Dependency: libX11 = 1.0.3-8.el5 is needed by package libX11-devel
Error: Missing Dependency: mesa-libGL = 6.5.1-7.2.el5 is needed by package mesa-libGL-devel
Error: Missing Dependency: freetype = 2.2.1-16.el5 is needed by package freetype-devel

All the above packages are available through the DVD and already installed on the machine.

As suggested by several forums I issued 'yum clean all' and 'rpm -rebuilddb'. But I still get the same error after doing so.

If anybody knows what it is, please let me know.

If any of the above is not clear, please let me know. I shall try to explain more clearly.

Thanks
 
Old 05-18-2010, 07:44 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by guna_pmk View Post
Hello,

I have a disk of all the rpms (just the rpms) of RH Ent. 5.1. I needed to intall some packages from it. For that I created a local repository. Following is what I did:

1. mounted DVD in /media
2. Issued createrepo on /media (Now the packages are in /media/mycdrom/RHE5Rpms and the repodata is in /media)
3. I added the following in the /etc/yum.conf
[MyPackages]
name=Packs
baseurl=file:///media
enabled=1

Now when I try to install, for example, qt4-devel, it can resolve the dependencies for one level. For example, it resolves libpng-devel (which is needed by qt4-devel), but it fails to resolve libpng (which is needed by libpng-devel). But libpng package is both available in the DVD and is already installed on the machine. Following is the tail of error messages I get after issuing the command 'yum install qt4-devel'

.
.
.
.
Error: Missing Dependency: libpng = 2:1.2.10-7 is needed by package libpng-devel
Error: Missing Dependency: mesa-libGLU = 6.5.1-7.2.el5 is needed by package mesa-libGLU-devel
Error: Missing Dependency: libX11 = 1.0.3-8.el5 is needed by package libX11-devel
Error: Missing Dependency: mesa-libGL = 6.5.1-7.2.el5 is needed by package mesa-libGL-devel
Error: Missing Dependency: freetype = 2.2.1-16.el5 is needed by package freetype-devel

All the above packages are available through the DVD and already installed on the machine.

As suggested by several forums I issued 'yum clean all' and 'rpm -rebuilddb'. But I still get the same error after doing so.

If anybody knows what it is, please let me know.

If any of the above is not clear, please let me know. I shall try to explain more clearly.

Thanks


You might be better off adding the new repo config in /etc/yum.repos.d
Remove it from /etc/yum.conf
Add it instead to /etc/yum.repos.d/filename.repo if you can..

If you type file:///media in your browser window (on the machine in question) do you see what yum should be seeing?
 
Old 05-18-2010, 08:01 AM   #3
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
Hi centosboy,

Thanks for your reply.

What difference is it going to make having the configuration in a separate script?

//If you type file:///media in your browser window (on the machine in question) do you see what yum should be seeing?//
As I have mentioned in my original post, yum is partially working. And resolving dependencies if they are not installed. The problem is only with dependencies that are installed already.

But I have tried both your suggestions. They are fine but I am still having the same problem.

Thanks
 
Old 05-19-2010, 05:31 AM   #4
guna_pmk
Member
 
Registered: Sep 2008
Posts: 220

Original Poster
Rep: Reputation: 5
Solved

Thats my mistake. I had the Red Hat Enterprise 5.0 rpms in my repository but trying to update 5.1 machine. The version number for most of the packages were same/similar which cheated my eyes.

Sorry about the confusion and thanks guys for your support

Thanks
 
  


Reply



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
Missing Dependency - yum hectorDUQUE Fedora 6 06-29-2008 08:33 PM
RHEL5, yum, and missing dependency.... grantcarmichael Linux - Software 2 05-15-2008 07:12 PM
How to tell yum missing dependency is actually there decrepit Fedora 2 02-04-2007 05:36 AM
yum missing dependencY puppet Linux - Software 6 10-26-2005 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 AM.

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