Quote:
Originally Posted by dharmendrajet
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.