HowTo uninstall Asterisk
After so many times answering this question, here is on the web an HowTo uninstall Asterisk:
- Check if your instalation has the "uninstall" Makefile target: $ make uninstall
- If the output is "make: *** No rule to make target `uninstall'. Stop." you have to look to the next items, If it worked, voilá, Asterisk is uninstalled.
- You have to choices here:
- You can upgrade Asterisk to the latest version, which already has the uninstall target;
- You can patch your Makefiles to add the uninstall target.
- If you want to upgrade Asterisk to the latest version, just do: $ make upgrade
- If you want to patch your Makefiles, the patch you need is this one
Easy, isn't it?
Dude, I have the latest version of Asterisk (1.2.9.1) and it does *not* have the make uninstall target. What's the deal?
ReplyDeleteThe trunk SVN version has it, but it beats the shit out of me ehy this isn't in 1.2 branch yet. I don't know much about their releases policy... But yes, it seems that you'll have to wait until the next version to have that patch bundled with it.
ReplyDeleteWow, nice:
ReplyDelete+ rm -rf $(DESTDIR)$(ASTMANDIR)/man8
Blowing away all of man8 not such a good idea, no? Nasty.
Probably suggest either diffing SVN Makefiles against current release, or linking to a different patch, but this one should not be used.
Anyone else looking for uninstall on release versions, check bugs.digium.com or use SVN and make your own.
You're right: not only the latest Asterisk versions already have the uninstall option, it has that bug. The bug is now reported.
ReplyDeletewhen i do this its showing
ReplyDeleteroot@lintraining2 ~/xpdf-3.02# make uninstall
make: *** No rule to make target `uninstall'. Stop.
rubz: you seem to be in the xpdf directory, instead of being on asterisk's directory...
ReplyDeletehey men thanks i´ve been trying to uninstall asterisk until i found your post
ReplyDeleteGlad to be of service :-)
ReplyDeleteWhat should I do _exactly_ to perform step 1 (maybe a very stupid question, but I'm very new to this...)
ReplyDeleteBy the way I installed Asterisk 1.8 on a Synology DS211 (but it seems not to work with the GUI, so I want to uninstall and install Asterisk 1.6)
Hope somebody can help me out!
You just do "make uninstall" in the instalation directory. If it works, it will uninstall. If it doesn't, then you jump to step 2.
ReplyDeleteSorry, but how can I find asterisk "instalation directory"?
ReplyDeleteIt's the directory you used to install asterisk...
Delete