How to remove or reinstall or upgrade the asterisk
In this article we are going to learn how to Remove asterisk or uninstalling asterisk and followed to that reinstall the asterisk either same version or latest versions. If you are planning to upgrade your asterisk or reinstall another version of asterisk by removing the existing asterisk completely then this article is for your.
how to remove asterisk completely and reinstall |
What is Asterisk?
Asterisk is a Open source Communication software , You can use Asterisk to build communications applications, things like business phone systems (also known as IP PBXs), call distributors, VoIP gateways and conference bridges.
In this blog article I have provided the steps to remove or uninstall asterisk completely from the linux server.
Why I need to Remove Asterisk?
You might be in a situation where you need to remove the asterisk for reinstalling the problematic asterisk version or you are planning to upgrade the current version of asterisk to latest version or downgrade to older version of asterisk.
Here the steps to remove the asterisk and its related files completely from linux server and reinstall the asterisk.
Step 1: Killing the asterisk servicesStep 2: Deleting the Asterisk Related files
Step 3: Installing the asterisk
Step 1: Killing the asterisk service - Killall
Before uninstalling the asterisk , you need to kill the asterisk services in the linux using the command killall as show below, Make sure any background or cronjob running which will start asterisk again
killall -9 safe_asterisk
killall -9 asterisk
systemctl disable asterisk
Step 2: Delete all Asterisk files
rm -rf /etc/asterisk
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk
Step 3: Check the Asterisk as service is still running
root 18272 0.0 0.0 4446 788 pts/0 S+ 12:10 0:00 grep asterisk
Step 4: Reinstall Asterisk
Common steps used to install asterisk it might differ according to your requirement
./configure
make
make install
make samples
How to remove or uninstall asterisk in vicidial