LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2009, 02:51 PM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
RPM installation


Hi,

When I try to install Apache rpms in my RHEL box, it says, httpd-suexec is needed by httpd.

Next, when I try to first install httpd-suexec, then it says httpd is needed... just a cycle problem..

rpm -ivh httpd-suexec-2.0.52-41.ent.4.i386.rpm
warning: httpd-suexec-2.0.52-41.ent.4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
httpd = 2.0.52-41.ent.4 is needed by httpd-suexec-2.0.52-41.ent.4.i386
Suggested resolutions:
/var/spool/up2datehttpd-2.0.52-41.ent.4.i386.rpm

[root@localhost Apache]# rpm -ivh httpd-2.0.52-41.ent.4.i386.rpm
warning: httpd-2.0.52-41.ent.4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
httpd-suexec is needed by httpd-2.0.52-41.ent.4.i386



How do I solve this problem ??
 
Old 10-26-2009, 02:53 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Try "rpm --force" for one of them; then you should be able to install both RPM's.
 
Old 10-26-2009, 03:09 PM   #3
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
but is that a good idea and will everything work as desired in doing so ?

Quote:
Originally Posted by paulsm4 View Post
Try "rpm --force" for one of them; then you should be able to install both RPM's.
 
Old 10-26-2009, 03:31 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sang_froid View Post
but is that a good idea and will everything work as desired in doing so ?
Yes, it's a good idea, that's why it was suggested to you. You have to get one of them installed, before you can install the second one.
 
Old 10-26-2009, 03:51 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*
In fact you can install several packages, depending
on each other, with one command :

# rpm -Uvh <package>.rpm <package>.rpm <package>.rpm

... That is " chain install ".
 
Old 10-26-2009, 03:59 PM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Thumbs up

Yes, solution by knudfl is the best in these kinda situations.

I also once stucked in a same situation and then I used the below command syntax
Code:
rpm -ivh first_package.rpm second_package.rpm
This wont give dependency problem.
 
Old 10-26-2009, 05:37 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by TB0ne View Post
Yes, it's a good idea, that's why it was suggested to you.
Offering --force as a first suggestion is never a good idea. And only use --force if all other options are exhausted as it bypasses checks. Unless the OP uses Yum or an equivalent package management tool to resolve dependencies knudfl's solution of adding all packages to be installed on the commandline should be the preferred way.
 
Old 10-28-2009, 12:06 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
As the rpm / yum dependency checking is only 99.9x %
reliable, you may in those rare occasions have to do :

# rpm -Uvh --nodeps
.. to manually install the critical package.

But I have never had to use the ' --force ' option.
( Started with Mandrake 8.2 in 2002.)
.....

Last edited by knudfl; 10-28-2009 at 02:48 PM.
 
  


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
rpm -ihv hp_qla2x00src-8.01.07.25-1.linux.rpm during Qlogic driver installation Dennisliu Linux - Software 5 09-10-2008 05:08 PM
regarding rpm installation munna_dude Programming 3 09-19-2007 03:07 AM
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 12:42 AM
rpm installation paulr1984 Linux - Newbie 1 04-28-2005 06:25 AM
installation via .rpm, (where is it???) nuka_t Linux - Newbie 15 06-26-2004 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 PM.

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