I'm using CentOS 5. I have a need to use net-snmp version "net-snmp-utils-5.5-37.el6_2.1.x86_64" which is currently available in CentOS 6 but not in CentOS 5. The reason I need this version (or greater) is because there is a new supported option added to the config files that I need for my setup.

It would be very much appreciated if someone would give me some steps to install this version (or greater) on my production CentOS 5 systems. Upgrading to CentOS 6 is currently not an option.

Any help would be appreciated.


  • compile from source and install in /opt? – Mike Pennington Jun 29 '12 at 2:57
  • What is the best way to compile something from source without actual doing it on a production server? I'd rather not install the build tools on the servers. Thanks. – jtnire Jun 29 '12 at 3:14
  • Boot into a development box running rhel5, install into /opt/netsnmp, then tar that directory tree, and copy to the production server – Mike Pennington Jun 29 '12 at 3:19
  • Thanks mike. How do I install into /opt/netsnmp on the dev box? Is that the prefix parameter to the "make install" command? – jtnire Jun 29 '12 at 3:21
  • Iirc, it is as simple as './configure --prefix=/opt/netsnmp', make, make install – Mike Pennington Jun 29 '12 at 3:22

I would go to a RHEL5 development machine, untar the source of your choice, cd into the untarr'd directory then issue:

./configure --prefix=/opt/netsnmp; make; make install

Get some coffee :-). Now tar the /opt/netsnmp directory up and copy to your production machine. Be sure to either alias or otherwise prefer this new netsnmp. If it won't run on the new box, ldd is your friend to track down which shared libs are missing.

  • I'm happy to assist... best of luck with your new snmp tools – Mike Pennington Jun 29 '12 at 3:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.