LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-14-2010, 12:20 PM   #1
anadem
LQ Newbie
 
Registered: Sep 2008
Posts: 16

Rep: Reputation: 0
strategy for resolving rpm dependence hell (centos)


What's a good strategy to resolve dependence conflicts with rpms?

I'm setting up a build environment on Centos 4. The build fails because of a missing openssl rpm. Trying to install the missing (rpm -i) gets many file conflicts. Trying to upgrade (rpm --upgrade) gets failed dependencies.

Where do I start on figuring out how make my build work. Is there a step-by-step approach to this? I'm pretty new to rpm hell and don't know where to begin.
 
Old 12-14-2010, 12:32 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
In most distributions, the first whack should be to use package repositories and utilities to do dependency handling for you. I believe CentOS uses yum, so try this.
 
Old 12-14-2010, 12:35 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
cent 4 . what ?? 8 .

and is there a very good reason that you HAVE to use CentOS 4.8 ( guessing on the .8)
centOS 5.5 is the current and 6 will be out soon .



it would also help if you informed us as to WHAT rpm it is you want to install that is newer than what is on the os .
Quote:
Trying to install the missing (rpm -i) gets many file conflicts. Trying to upgrade (rpm --upgrade) gets failed dependencies.
that tells us nothing .
 
Old 12-14-2010, 12:59 PM   #4
anadem
LQ Newbie
 
Registered: Sep 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
cent 4 . what ?? 8 .

and is there a very good reason that you HAVE to use CentOS 4.8 ( guessing on the .8)
centOS 5.5 is the current and 6 will be out soon .
Thanks for reading my question! Yes, we're using CentOS 4.8. My employer's product is built on that and change to 5.x (or 6) won't happen for the next few months.

Quote:
Originally Posted by John VV View Post
it would also help if you informed us as to WHAT rpm it is you want to install that is newer than what is on the os .

that tells us nothing .
With apologies if you found it annoying, I deliberately left out the details of what rpm I'm trying to install because my question is about general strategy rather than this particular issue -- there are bound to be many more in my future (I've recently been moved onto Linux stuff so despite 20+ years hacking other OSes I'm still pretty ignorant about Linux) and I don't want to bother people here with trivia over and over again.

What I'd like to understand is HOW to approach resolving the dependency problem. Is there a step-by-step way to figure it out? I don't yet even really know for sure which rpm has to be installed. I know that running rpmbuild fails because of a missing file, and I know that a machine which does build successfully has certain rpms which are absent from the system I'm setting up. But I don't know how to get past the dependency that's stopping me installing the missing rpms. I'd appreciate any suggestions please.
 
Old 12-14-2010, 01:29 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 13,051

Rep: Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741Reputation: 1741
general might be to use yum( if installed) or rpm and force it BUT if it is a system file than you might KILL the OS .
for example if it is glib installing a different rpm than what is installed , would not be good -- to put it mildly

i take it yum is installed
let yum handle the dependencies


use "yum "
 
Old 12-14-2010, 06:20 PM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
rpm pkgs are prog individual pkgs. To install them & their dependencies(!), do NOT try to install the rpms individually/direct. Instead, use the provided tool(s) designed to handle dependencies for you.

On RHEL/Centos 4.x, the original tool was called 'up2date'. On 4.8 you should also be able to install another tool called yum , which was originally created to replace up2date for RHEL 5.x series and then backported to be avail for 4.x.
http://kbase.redhat.com/faq/docs/DOC-2531
http://www.linuxtopia.org/online_boo...ide/index.html
HTH

Welcome to LQ
 
  


Reply

Tags
centos4, rpm


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
RPM: --aid not resolving dependencies alokatzenith Linux - Newbie 1 11-29-2010 09:10 AM
automatically resolving rpm dependencies saintkay Linux - Newbie 1 11-23-2010 05:45 AM
rpm hell - please help !!! :-( jonathan dibble Linux - Software 3 03-28-2006 03:33 PM
Resolving RPM dependencies vice Linux - Software 5 06-17-2005 10:14 AM
RPM Hell SForsgren Linux - General 5 05-09-2003 12:57 AM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration