<br><br><div class="gmail_quote">On Sat, Jan 23, 2010 at 5:48 AM, Terry L. Inzauro <span dir="ltr"><<a href="mailto:tinzauro@ha-solutions.net">tinzauro@ha-solutions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 01/22/2010 02:39 PM, liyas m wrote:<br>
> i use apt-get remove nagios-text and apt-get remove --purge nagios-text<br>
> but still does not work<br>
> the old version 1.3 is still there.<br>
><br>
><br>
> On Thu, Jan 21, 2010 at 6:17 PM, Assaf Flatto <<a href="mailto:nagios@flatto.net">nagios@flatto.net</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>>> wrote:<br>
><br>
>     liyas m wrote:<br>
>     > DEar all,<br>
>     ><br>
>     >  I have installed nagios 3.2 on my server for student project and<br>
>     >  everything worked fine until i run apt-get nagios-text. After<br>
>     that the<br>
>     > version appeared on the server is Nagios 1.3 not 3.2 which is very<br>
>     >  strange. I tried to reinstalled but still the old version appear<br>
>     >  although the engine shown by nagios -c is 3.2<br>
>     ><br>
>     >  Nagios Core 3.2.0<br>
>     >  Copyright (c) 2009 Nagios Core Development Team and Community<br>
>     > Contributors<br>
>     >  Copyright (c) 1999-2009 Ethan Galstad<br>
>     >  Last Modified: 08-12-2009<br>
>     >  License: GPL<br>
>     ><br>
>     >  How do I remove the old version ? Thank you for your help.<br>
>     ><br>
>     >  Regards,<br>
>     > Liyas<br>
>     if you installed with apt - you can try apt-get purge nagios-text .<br>
>     that will remove the package installed .<br>
>     As for returning to  the source installed software - you might have to<br>
>     rerun the configure / make process to make sure the newer files are<br>
>     installed and used .<br>
><br>
>     or you can use the blunt force method and rm every file related to<br>
>     nagios - but i wouldn't recommend it  , only as a last resort .<br>
><br>
>     Assaf<br>
><br>
<br>
</div></div>If, by helping you, are we enabling you to cheat? If the answer is yes, you had better stop reading this and figure out your<br>
issue on your own (by reading the apt docs...hint...hint)<br>
<br>
<br>
What OS/version is this?<br>
<br>
-----------------------------<br>
If the OS is Debian Lenny (This may/may not work in Ubuntu):<br>
-----------------------------<br>
<br>
Fist find which nagios packages are installed. Install apt-show-versions.  I recommend using aptitude has it has greater<br>
package dependency handling abilities and saftey guards.<br>
<br>
<br>
[15:27:28 root@jenna:~]# aptitude install apt-show-versions<br>
<br>
<br></blockquote><div> </div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Second, invoke apt-show-versions and parse the output using grep.<br>
<br>
[15:29:28 root@jenna:~]# apt-show-versions  | grep nagios<br>
nagios-images/lenny uptodate 0.4<br>
nagios-nrpe-plugin/lenny uptodate 2.12-1<br>
nagios-plugins/lenny uptodate 1.4.12-5<br>
nagios-plugins-basic/lenny uptodate 1.4.12-5<br>
nagios-plugins-standard/lenny uptodate 1.4.12-5<br>
nagios3/lenny uptodate 3.0.6-4~lenny2<br>
nagios3-common/lenny uptodate 3.0.6-4~lenny2<br>
nagios3-doc/lenny uptodate 3.0.6-4~lenny2<br>
[15:29:33 root@jenna:~]#<br>
<br></blockquote><div>root@ubuntu:~# apt-show-versions  | grep nagios<br>nagios-plugins-standard/dapper uptodate 1.4.2-5ubuntu3.1<br>nagios-plugins-basic/dapper uptodate 1.4.2-5ubuntu3.1<br>nagios-common/dapper uptodate 2:1.3-cvs.20050402-8ubuntu8<br>
nagios-plugins/dapper uptodate 1.4.2-5ubuntu3.1<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
The first string is the package name to use as an argument to `aptitude remove --purge`.  I recommend you start from scratch<br>
and remove ALL nagios packages to help quell confusion.<br>
<br>
If I wanted to only remove the nagios core package(s) (and purge configuration files) I would invoke aptitude like this:<br>
<br>
[15:29:33 root@jenna:~]# aptitude remove --purge nagios3 nagios3-common<br></blockquote><div><br>Couldn't find any package whose name or description matched "nagios3"<br>Couldn't find any package whose name or description matched "nagios3-common"<br>
.<br>.<br>0 packages upgraded, 0 newly installed, 0 to remove and 324 not upgraded.<br>Need to get 0B of archives. After unpacking 0B will be used.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
If I wanted to save the configuration files, I would omit the --purge switch.<br>
<br>
If, you are like me and are short tempered, you can invoke aptitude with more than one task. Such as the following.<br>
<br>
[15:29:33 root@jenna:~]# aptitude remove --purge nagios3 nagios3-common nagios2+<br>
<br>
This command will remove (and purge) nagios3 and nagios3-common. Then it will install nagios2 thuns accomplishing a<br>
downgrade.  Obviously, this command isn't what you want, but I decided to show it for informational purposes.<br>
<br>
<br>
<br>
hope this helps.<br>
<br>
<br>
Terry<br>
<a href="http://ha-solutions.net" target="_blank">http://ha-solutions.net</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br>