Koozali.org: home of the SME Server

Help Uninstall MRTG

Offline AaronG

  • ***
  • 90
  • +0/-0
    • http://www.healthinc.com.au
Help Uninstall MRTG
« on: November 11, 2004, 02:53:36 AM »
Hi Guys,

I wish to uninstall MRTG. I installed MRTG using the following link

http://sme.swerts-knudsen.com/index.html?frame=http%3A//sme.swerts-knudsen.com/howtos/howto_22.htm

It has an automated Install Script which I ran on my SME server.

How do i uninstall this addon? As you can see I am a newbie.

Cheers
Aaron
...

bigbri100

Help Uninstall MRTG
« Reply #1 on: November 11, 2004, 03:36:21 AM »
A quick way is to disable the cronjob that runs every 5 minutes.
pico /etc/e-smith/templates-custom/etc/crontab/mrtg
Add a "#" to look like this.
# 0-59/5 * * * * root /etc/mrtg/all-ip
save and exit pico
/sbin/e-smith/expand-template /etc/crontab

If you decide to start using MRTG later just reverse the change.

You can open the install script in a text editor and remove each rpm using "rpm -e rpm-name"

Offline AaronG

  • ***
  • 90
  • +0/-0
    • http://www.healthinc.com.au
Help Uninstall MRTG
« Reply #2 on: November 11, 2004, 03:45:09 AM »
I think I would like to remove it.

So If i edit the install script with those changes it will completely remove it and remove any reference to it in the cronjob for example?


Thankyou soo much for your help.
...

bigbri100

Help Uninstall MRTG
« Reply #3 on: November 11, 2004, 03:23:49 PM »
You do not have to edit the install script.

Run the following to kill the cronjob:
rm -rf /etc/e-smith/templates-custom/etc/crontab/mrtg
/sbin/e-smith/expand-template /etc/crontab

Use the install script to find the names of each RPM that was installed, so that you can remove them properly.
For example:
To remove mrtg-2.9.17-3.i386.rpm
-use-
rpm -e mrtg-2.9.17-3