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 08-09-2012, 05:21 PM   #1
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
RPM dependencies checking


Hello:

I need to figure out a way to check RPM's dependencies against version that may or may not be already installed on the system, using RPM command. Possible?
Notice, I need check dependencies for a package, NOT just list them. For example I could list dependencies with:

rpm -qp --requires httpd-2.2.15-15.el6.centos.1.x86_64.rpm

I need to know if RPM could actually check versions of all dependencies required by a specific rpm and report on what is missing, if any, what needs to be updated, etc.
 
Old 08-09-2012, 05:23 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Don't use RPM for that: use Yum.
 
Old 08-09-2012, 06:19 PM   #3
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Original Poster
Rep: Reputation: 17
Thanks for the response.
...I wish, no yum here, it's a RHEL 4 server
I could always install yum, I guess
 
Old 08-09-2012, 08:00 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
RHEL 4
BUT you are trying to use a RHEL6 rpm
will NOT WORK!!!
rpm -qp --requires httpd-2.2.15-15.el6.centos.1.x86_64.rpm

you can not put a CentOS6 rpm on RHEL4

if you MUST use, and ONLY use ,the very old RHEL4 and not use Apache1

then build all and every dependency for Apache 2.2 on RHEL4
 
Old 08-10-2012, 12:00 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,361

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Support for RHEL4 finished in Feb http://www.redhat.com/security/updates/errata/
RHEL 4 uses up2date instead of yum and the equiv cmds are here https://access.redhat.com/knowledge/solutions/2529
Note also that yum was back-ported to RHEL4 around 4.8 or 4.9, iirc.

HTH
 
Old 08-14-2012, 02:24 PM   #6
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Original Poster
Rep: Reputation: 17
Guys, thanks for the answers.
Yes ... this is an old server that will be retired in 2 months, but upper executives want us to patch some things that were identified as high risk by information security. I may have to compile from source, but I must include everything that is needed and nothing that is not (modules, options, etc). I will have to some reading on that ...
 
  


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
checking for dependencies with SBoPkg joutlancpa Slackware 8 04-09-2009 01:56 PM
Checking dependencies garyg007 Slackware 13 11-19-2008 02:17 PM
Checking for Dependencies yougene Slackware 3 12-21-2005 09:07 AM
Checking Dependencies RodimusProblem Programming 7 01-11-2005 08:48 PM
Checking for Dependencies Darkman_2099 Linux - Newbie 2 10-29-2003 07:52 PM

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

All times are GMT -5. The time now is 06:15 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