LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-07-2014, 05:58 AM   #1
dharm_sk
LQ Newbie
 
Registered: Jul 2014
Posts: 13

Rep: Reputation: Disabled
Net-SNMP not removed properly


Hi All,

I had installed Net-SNMP 5.7.2 (Ubuntu 14.04/64-bit) using apt-get install snmp snmpd.
I wanted to use the latest version net-snmp 5.7.3 pre5 which i downloaded from sourceforge.

i uninstalled current snmp using

sudo apt-get purge --auto-remove snmp snmpd

then i installed the new package using ./configure, make, make install

snmpd -v gives the loaded version number but it gives the old version

root@dell-Inspiron-5423:~/Desktop/net-snmp-5.7.3.pre5# snmpd -v

NET-SNMP version: 5.7.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

when i tried auto-remove again this is what i get

sudo apt-get purge snmp snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'snmp' is not installed, so not removed
Package 'snmpd' is not installed, so not removed

The following packages were automatically installed and are no longer required:
libmysqlclient18 mysql-common
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Should i remove the mysql package shown and recompile new net-snmp package?
Or is there any other solution?
 
Old 09-08-2014, 03:06 PM   #2
albinard
Member
 
Registered: Jan 2011
Location: New Mexico
Distribution: Xubuntu Core
Posts: 185

Rep: Reputation: 59
I don't know if it will help in your case, but recently when I tried to remove an old Dropbox version so I could install a new one, I used the same apt-get purge system, but it did not work. In desperation I tried
Code:
sudo su
followed by
Code:
# dpkg --purge dropbox
That took out the old package and all the configuration files, and left an easy install for the new one.
 
Old 09-08-2014, 03:09 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You seem to be trying to compile source code for snmp. You have not installed a package. Compiling a program from source will not have any impact on your installed packages.
Quote:
i uninstalled current snmp using

sudo apt-get purge --auto-remove snmp snmpd
What messages did apt-get give you when you did this? Is the new version that you compiled yourself working properly? If so, then it would be ok to remove the mysql packages as your system suggests.
jdk
 
Old 09-09-2014, 12:12 AM   #4
dharm_sk
LQ Newbie
 
Registered: Jul 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
there were some files related to 5.7.2 package which remained in my system. using locate and grep i removed all and now its working fine.

Thank you jdkaye and albinard. :-)
 
Old 09-09-2014, 11:21 PM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Happy to hear that. Well done!
jdk
 
  


Reply

Tags
installation, snmp, snmpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

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

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