April 11, 2006

HowTo uninstall Asterisk

After so many times answering this question, here is on the web an HowTo uninstall Asterisk:

  1. Check if your instalation has the "uninstall" Makefile target: $ make uninstall
  2. 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.
  3. 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.
  4. If you want to upgrade Asterisk to the latest version, just do: $ make upgrade
  5. If you want to patch your Makefiles, the patch you need is this one

Easy, isn't it?

12 comments:

  1. Anonymous7:13 AM

    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?

    ReplyDelete
  2. The 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.

    ReplyDelete
  3. Anonymous10:24 AM

    Wow, nice:

    + 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.

    ReplyDelete
  4. You're right: not only the latest Asterisk versions already have the uninstall option, it has that bug. The bug is now reported.

    ReplyDelete
  5. Anonymous7:07 AM

    when i do this its showing

    root@lintraining2 ~/xpdf-3.02# make uninstall
    make: *** No rule to make target `uninstall'. Stop.

    ReplyDelete
  6. rubz: you seem to be in the xpdf directory, instead of being on asterisk's directory...

    ReplyDelete
  7. Anonymous5:14 AM

    hey men thanks i´ve been trying to uninstall asterisk until i found your post

    ReplyDelete
  8. Glad to be of service :-)

    ReplyDelete
  9. What should I do _exactly_ to perform step 1 (maybe a very stupid question, but I'm very new to this...)

    By 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!

    ReplyDelete
  10. 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.

    ReplyDelete
  11. Sorry, but how can I find asterisk "instalation directory"?

    ReplyDelete
    Replies
    1. It's the directory you used to install asterisk...

      Delete