LinuxQuestions.org
Review your favorite Linux distribution.
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 03-03-2013, 09:04 AM   #1
dharmendrajet
LQ Newbie
 
Registered: May 2010
Location: gurgaon India
Distribution: Fedora, Cent os, RHEL, Ubuntu Server
Posts: 4

Rep: Reputation: 0
Question Unable to upgrade net-snmp- to 5.3.2.2-17.from 5.3.2.2.7 in RHEL 5.4


I have RHEL 5.4 serve . below is the current package of net-snmp in the system.

# rpm -qa |grep net-snmp
net-snmp-utils-5.3.2.2-7.el5
net-snmp-libs-5.3.2.2-7.el5
net-snmp-5.3.2.2-7.el5


i have copied below package from RHEL 5.7 iso.

net-snmp-5.3.2.2-20.el5.x86_64.rpm
net-snmp-libs-5.3.2.2-20.el5.x86_64.rpm
net-snmp-utils-5.3.2.2-20.el5.x86_64.rpm

When i run the bleow commmand from the current dirctory


[root@xyz net-snmp]# rpm -Uvh net-snmp-utils-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
net-snmp = 1:5.3.2.2-17.el5 is needed by net-snmp-utils-5.3.2.2-17.el5.x86_64

[root@xyz net-snmp]# rpm -Uvh net-snmp-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
net-snmp-libs = 1:5.3.2.2-17.el5 is needed by net-snmp-5.3.2.2-17.el5.x86_64

[root@xyz net-snmp]# rpm -Uvh net-snmp-libs-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
net-snmp-libs = 1:5.3.2.2-7.el5 is needed by (installed) net-snmp-5.3.2.2-7.el5.x86_64

[root@xyz net-snmp]# rpm -Uvh net-snmp-perl-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
net-snmp = 1:5.3.2.2-17.el5 is needed by net-snmp-perl-5.3.2.2-17.el5.x86_64

[root@xyz net-snmp]# rpm -Uvh net-snmp-utils-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
net-snmp = 1:5.3.2.2-17.el5 is needed by net-snmp-utils-5.3.2.2-17.el5.x86_64

[root@xyz net-snmp]# rpm -Uvh net-snmp-devel-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
beecrypt-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
elfutils-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
elfutils-libelf-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
lm_sensors-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
net-snmp = 1:5.3.2.2-17.el5 is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
rpm-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64

Last edited by dharmendrajet; 03-03-2013 at 09:08 AM.
 
Old 03-03-2013, 09:10 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by dharmendrajet View Post
I have RHEL 5.4 serve . below is the current package of net-snmp in the system.
i have copied below package from RHEL 5.7 iso.

net-snmp-5.3.2.2-20.el5.x86_64.rpm
net-snmp-libs-5.3.2.2-20.el5.x86_64.rpm
net-snmp-utils-5.3.2.2-20.el5.x86_64.rpm

When i run the bleow commmand from the current dirctory
Why?? Since you're using RHEL, you can type in "yum update net-snmp", and it'll install the latest version with all the dependencies.
Quote:
error: Failed dependencies:

[root@ppagwksvprjmcg01 net-snmp]# rpm -Uvh net-snmp-devel-5.3.2.2-17.el5.x86_64.rpm
error: Failed dependencies:
beecrypt-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
elfutils-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
elfutils-libelf-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
lm_sensors-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
net-snmp = 1:5.3.2.2-17.el5 is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
rpm-devel is needed by net-snmp-devel-5.3.2.2-17.el5.x86_64
Right. Because, since you copied packages from one version of RHEL to another, you also have to install ALL THE DEPENDENCIES. So, copy them over, one by one, and install them (AND their dependencies), one by one. That's the only way to do it manually, and is VERY obvious from the errors that you're getting, that clearly tell you that you have missing dependencies. Using yum to install is the preferred way to do it, since it resolves all of that. Also, read the man page on the rpm command, and pay particular attention to the "--no-deps" flag.
 
Old 03-03-2013, 10:29 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Exactly what TB0ne said; use yum not rpm.
FYI, RHEL is on v5.9 now; ideally you'd just update everything if possible.
 
  


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
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Upgrade net-snmp 5.4.3 to net-snmp 5.6.1 aocferreira Linux - Networking 2 03-14-2011 07:09 PM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
Upgrade of net-snmp odwillia Linux - Server 0 07-10-2007 03:46 PM
net-SNMP on RHEL AS 3.0 irving_wp Linux - General 1 04-14-2006 02:21 PM

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

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