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 10-13-2010, 09:30 AM   #1
jackets89
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
RPM installation


Trying to install net-snmp on a VM running rhel5. I did a 'rpm -qa |grep snmp' and it returned 'net-snmp-libs-5.3.2.2-9.el5' as already being installed.

So, I then ran 'rpm -ivh net-snmp-5.3.2.2-9.el5.1.x86_64rpm' and it returned an error: Failed dependencies: net-snmp-libs-5.3.2.2-9.el5 is needed.

Why isn't it recognizing that net-snmp-libs is already installed on the server?

Thank you
 
Old 10-13-2010, 10:15 AM   #2
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Question RPM Dependencies

Quote:
Originally Posted by jackets89 View Post
So, I then ran 'rpm -ivh net-snmp-5.3.2.2-9.el5.1.x86_64rpm' and it returned an error: Failed dependencies: net-snmp-libs-5.3.2.2-9.el5 is needed.
Have you tried removing and reinstalling the net-snmp-libs?

Last edited by amarand; 10-13-2010 at 10:18 AM. Reason: Changing question.
 
Old 10-13-2010, 10:21 AM   #3
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
It appears that 'net-snmp-libs-5.3.2.2-9.el5' may be 32-bit. You will have to install the 64-bit net-snmp-libs package.
To check what is installed, run the following command:

Code:
rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" net-snmp net-snmp-libs
On my system, it appears as follows:
Code:
net-snmp-5.3.2.2.5.el5 (x86_64)
net-snmp-libs-5.3.2.2.5.el5 (x86_64)
net-snmp-libs-5.3.2.2.5.el5 (i386)

Last edited by valen_tino; 10-13-2010 at 10:23 AM.
 
Old 10-13-2010, 10:24 AM   #4
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Quote:
Originally Posted by valen_tino View Post
It appears that 'net-snmp-libs-5.3.2.2-9.el5' may be 32-bit. You will have to install the 64-bit net-snmp-libs package.
To check what is installed, run the following command:

Code:
rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" net-snmp net-snmp-libs
One of the things that always gets me, is that it doesn't always specify the entire name of the package, but it compares against it. If it states that it requires "net-snmp-libs-5.3.2.2-9.el5" but you're loading the 64-bit version of the app, that makes sense. However, shouldn't that be considered a bug if it's stating a package dependency of one name, when it really means another?
 
Old 10-13-2010, 10:57 AM   #5
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
Hence yum is the preferred way to go about installing RPMs.
 
Old 10-13-2010, 11:09 AM   #6
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Cool

Quote:
Originally Posted by valen_tino View Post
On my system, it appears as follows:
Code:
net-snmp-5.3.2.2.5.el5 (x86_64)
net-snmp-libs-5.3.2.2.5.el5 (x86_64)
net-snmp-libs-5.3.2.2.5.el5 (i386)
I'm seeing similar:

Code:
net-snmp-5.3.2.2.9.el5_5.1 (x86_64)
net-snmp-libs-5.3.2.2.9.el5_5.1 (x86_64)
net-snmp-libs-5.3.2.2.9.el5_5.1 (i386)
 
Old 10-13-2010, 11:53 AM   #7
jackets89
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
rpm --query --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" net-snmp net-snmp-libs returned the following:

package net-snmp is not installed (already known)
net-snmp-libs-5.3.2.2.9.el5 (x86_64)

amarand - Yes, tried to remove currrent install and failed to it being needed for other packages.
 
Old 10-13-2010, 11:55 AM   #8
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
You are trying to install "net-snmp" when it is already installed.
 
Old 10-13-2010, 12:01 PM   #9
jackets89
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
valen_tino:

rpm -qa |grep snmp
net-snmp-libs-5.3.2.2-9.el5

net-snmp is NOT currently installed....tried to install, but as mentioned earlier, it says ner-snm-libs is needed....
 
Old 10-13-2010, 01:04 PM   #10
amarand
LQ Newbie
 
Registered: Oct 2010
Location: Galloway, Ohio, USA
Distribution: CentOS
Posts: 19

Rep: Reputation: 7
Question

Quote:
Originally Posted by jackets89 View Post
valen_tino:

rpm -qa |grep snmp
net-snmp-libs-5.3.2.2-9.el5

net-snmp is NOT currently installed....tried to install, but as mentioned earlier, it says ner-snm-libs is needed....
I have a really dumb question: are you cut-and-pasting these responses, Jackets89? Look at this:

net-snmp-libs-5.3.2.2-9.el5
net-snmp-libs-5.3.2.2.9.el5 (x86_64)

If the first one is a typo, I understand, but if you cut-and-pasted the answer above, do you see the version number differs? One is 2-9 the other is 2.9. One has a dash, the other a dot. If you copy-and-pasted these here, then there's a chance that it's not matching, because the names don't match. Thoughts?
 
Old 10-13-2010, 01:38 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
then simply use yum LIKE YOU ARE SUPPOSED TOO to install it !
yum solves the dependencies

USE YUM
do not use rpm to install software unless there IS absolutely NO OTHER WAY

Code:
yum install  net-snmp
-- or this --
yum reinstall  net-snmp
or search the yum repo database
Code:
 yum search snmp

Last edited by John VV; 10-13-2010 at 01:40 PM.
 
Old 10-13-2010, 01:48 PM   #12
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
@jackets89: My apologies...I mistook amarand's response to yours. Now we know that the 64-bit version is installed. Having said that, did you try installing the 32-bit version as well? Give that a shot if not done already.

@amarand: The cut-paste is correct. This is because the of the way we are asking the output to be displayed. For example:
Code:
rpm --query --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" net-snmp net-snmp-libs
will display identical to
Code:
rpm -qa |grep snmp
(without the architecture of course)

Last edited by valen_tino; 10-13-2010 at 01:51 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 installation sang_froid Linux - Server 7 10-28-2009 12:06 PM
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
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 12:42 AM
RPM installation joint SUSE / openSUSE 2 10-10-2006 10:15 AM
RPM Installation hkillen Linux - Newbie 2 09-22-2006 02:33 PM

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

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