Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: AaronG on November 11, 2004, 02:53:36 AM

Title: Help Uninstall MRTG
Post by: AaronG 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
Title: Help Uninstall MRTG
Post by: bigbri100 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"
Title: Help Uninstall MRTG
Post by: AaronG 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.
Title: Help Uninstall MRTG
Post by: bigbri100 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