LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Net SNMP (https://www.linuxquestions.org/questions/linux-software-2/net-snmp-112574/)

WiWa 11-05-2003 04:33 AM

Net SNMP
 
I would like to find out what version I'm using of Net SNMP.
Afterwards, I would like to uninstall that version completely and I would like to re)install the latest tar.gz file (using ./configure, make, make install)

I would like to install the new version under /usr/local...and I'm afraid my previous version is installed somewhere else, I don't know why.

Anyone can help me?

Regards,

Wim

wellsaj 11-05-2003 05:00 AM

Hi

If you have an rpm based system you can issue the following command on the CLI

rpm -qa | grep snmp

Once you have found the correct rpm issue this command on the CLI

rpm -i (the net-snmp result from the last command)

Or you can type at the CLI

snmpwalk -V

This will give you the version.

To uninstall it type at the CLI

rpm -e (the net-snmp result of the rpm -qa command)

Kind Regards
James

markus1982 11-05-2003 05:28 AM

If you are not on a rpm-distro you could find / | grep snmp

rstory 03-19-2004 10:41 PM

Quote:

Originally posted by WiWa
I would like to find out what version I'm using of Net SNMP.
Afterwards, I would like to uninstall that version completely and I would like to re)install the latest tar.gz file (using ./configure, make, make install)

I would like to install the new version under /usr/local...and I'm afraid my previous version is installed somewhere else, I don't know why.

To find out what version you have, 'snmpget -V'.

If you have an rpm installed ('rpm -q net-snmp'), use the instructions someone else posted. Otherwise, you have to jump through some hoops. This *might* work..

1) get the latest source, and unzip it

2) find the install location for the previous location ('which snmpget', minus the /bin/snmpget)

3) configure the newest version (5.1 or later) like so:
./configure --prefix=/path/from/step2 --with-defaults

4) then 'make uninstall'

5) clean up with 'make distclean'

6) install new version with ./configure, make, make install


All times are GMT -5. The time now is 04:12 AM.