Remove Asterisk from Linux server (ubuntu/centos/debian/rhel)
The following removal instructions are for completely removing Asterisk from your Linux Instance.
---------------- REMOVE AND REINSTALL INSTRUCTIONS ------------------------
Here is how to remove asterisk from a linux server and reinstall from source.
Pre-requirements: Download source, configure, make menuselect, and make. All done with root (sudo su) Example:
sudo su ###ENTER ROOT PASSWORD### mkdir ~/build cd ~/build wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz tar -xvf asterisk-14-current.tar.gz cd asterisk-14 ./contrib/scripts/install_prereq install ./configure --with-jansson-bundled ##Note: you may not need jansson-bundled so omit this if needed## make menuselect ###Select any needed addons: MP3, etc.### makeNote: you can install asterisk 13, 15, or custom git asterisk branch (i.e. gvsip) instead of Asterisk-14 tar
Once you have the project built, you now need to clean the old asterisk out and reboot
make uninstall ###OR to clean EVERYTHING### make uninstall-allOnce this is complete I like to reboot, and then run a make install to install the different version of asterisk.
---------------- FULL REMOVAL NO REINSTALL ----------------------------
Now let's say you just want to remove asterisk and just don't want it anymore. Well, that is far simpler. Just run the following commands and it will be gone forever
killall -9 safe_asterisk killall -9 asterisk systemctl disable asterisk ##Note: depending on the install this may not be enabled or was set to run via @reboot cron or daemon service - Mileage will vary## rm -rf /etc/asterisk rm -rf /var/log/asterisk rm -rf /var/lib/asterisk rm -rf /var/lib64/asterisk rm -rf /var/spool/asterisk rm -rf /usr/lib/asterisk rm -rf /usr/lib64/asterisk rebootFINISHED
Posted from my blog with SteemPress : https://www.christitus.com/2018/08/17/remove-asterisk-from-linux-server-ubuntu-centos-debian-rhel/
Leave Remove Asterisk from Linux server (ubuntu/centos/debian/rhel) to:
Read more #asterisk posts
Best Posts From Chris Titus
We have not curated any of christitus's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Chris Titus
- Resize LVM Partition | Fedora 29 | Step by Step Guide
- Grant Full Access to all Public Folders for a user in Exchange
- Force active directory sync to Office 365 with Azure ADSync
- Create Swap file on Cloud VM (AWS, GCloud, or Azure)
- Cloud migration hosting in Google, Amazon, or Microsoft
- Launching a startup program to run as administrator
- Troubleshooting Nagios 4 Core Installation
- Changing file permissions using PowerShell
- Commiting Changes to Docker images and containers
- No System Reserved Partition, Boot device not found, corrupt BCD / MBR