[asterisk-users] Uninstalling Asterisk? No make uninstall?

Carey O'Shea carey at internode.on.net
Sat Jul 8 03:16:11 MST 2006


On Sat, 2006-07-08 at 13:00 +0300, Tzafrir Cohen wrote:
> On Sat, Jul 08, 2006 at 07:27:37PM +1000, Carey O'Shea wrote:
> > On Sat, 2006-07-08 at 10:58 +0300, Tzafrir Cohen wrote:
> > > On Sat, Jul 08, 2006 at 05:43:41PM +1000, Carey O'Shea wrote:
> > > > On Sat, 2006-07-08 at 10:22 +0300, Tzafrir Cohen wrote:
> > > > > On Sat, Jul 08, 2006 at 04:46:00PM +1000, Carey O'Shea wrote:
> > > > > > There does not seem to be any "make uninstall" for Asterisk 1.2.9.1 and
> > > > > > Zaptel 1.2.6... 
> > > > > > 
> > > > > > I tried to apply an uninstall patch but got many Hunk errors from both
> > > > > > 1.2.9.1 and latest SVN:
> > > > > > http://bugs.digium.com/file_download.php?file_id=8805&type=bug
> > > > > 
> > > > > Next time, patch --dry-run # :-(
> > > > 
> > > > It's OK, I did the patch on copies of my built source on an isolated
> > > > server, so I still have my original untouched sources that I am
> > > > currently running.
> > > > 
> > > > > > Is there a reason that there is no "make uninstall"? And what is the
> > > > > > easiest way to completely remove Asterisk and Zaptel from any given
> > > > > > system -- cleanly and properly?
> > > > > 
> > > > > If you want to "reinstall" just reinstall on top of the old system.
> > > > 
> > > > I don't need to reinstall, I need to uninstall.
> > > > 
> > > > > 
> > > > > You can't really be sure that the uninstall script you'll be running is
> > > > > using the same options as the one you build with.
> > > > 
> > > > I should be able to with a proper "make uninstall".
> > > > 
> > > > > 
> > > > > If you want to allow a clean uninstall, either use asterisk from a
> > > > > decent package or try something like checkinstall .
> > > > > 
> > > > 
> > > > The Asterisk packages built for my systems are always far too out of
> > > > date. However you are right, since there seems to be no "make
> > > > uninstall", then packages should have been built by hand at compile time
> > > > instead of "make install". But it is too late for that now, "make
> > > > install" has already been run, hence my post. Is the only option to
> > > > manually remove everything?
> > > 
> > > "Everything" is not much. Mostly /etc/asterisk , /var/lib/asterisk ,
> > > /var/spool/asterisk , /var/run/asterisk , /etc/asterisk ,
> > > /usr/lib/asterisk (/modules) and /usr/share/asterisk (at least in some
> > > cases).
> > > 
> > > There are also a number of binaries in /usr/sbin (most notably asterisk)
> > > which may differ a bit, depending on yor installation method.
> > > 
> > 
> > And the many manpages, 
> 
> Right
> 
> > and zaptel modules, 
> 
> This is not asteris. It's zaptel.
> 
> Take a look at the guessswork done in the install target of zaptel. 
> Do you really want such guesswork be done automatically? Hint: even
> getting the kernel version may notbe trivial. imply deleting everything
> under misc/ might deete something else you installed.
> 
> > and header include for
> > zaptel, 
> 
> zaptel.h and libtonezone are part of zaptel, again. 
> 
> > and /dev/zap, and /usr/include/asterisk, and rasterisk, and
> > safe_asterisk, and /var/log/asterisk, and astkeygen, and astman, 
> 
> Right
> 
> > ztcfg,
> > zttool, and I'm sure there are more.
> 
> Zaptel, again.
> 

I realise which things I mentioned originated from Zaptel, as my
original post asked about removing both Asterisk and Zaptel. I'm not
complaining, I'm just saying that removing things manually means that
you are likely to miss things.





More information about the asterisk-users mailing list