How to uninstall xampp in linux
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
To uninstall XAMPP from your Linux system, follow these steps:
Step-by-Step Uninstallation Guide
Stop the XAMPP services:
Before uninstalling XAMPP, stop all running services to ensure a clean removal.
Open a terminal and run the following command:
$ sudo /opt/lampp/lampp stop
Remove the XAMPP directory:
Delete the entire XAMPP installation directory. By default, XAMPP is installed in the /opt/lampp directory.
Run the following command:
$ sudo rm -rf /opt/lampp
Remove the XAMPP desktop shortcut (if created):
If you have a desktop shortcut for XAMPP, remove it by running the following command:
$ rm ~/Desktop/xampp-control-panel.desktop
Remove XAMPP-related systemd services (if any):
If you created any systemd service files to manage XAMPP, remove them.
Run the following commands:
$ sudo systemctl stop xampp.service
$ sudo systemctl disable xampp.service
$ sudo rm /etc/systemd/system/xampp.service
$ sudo systemctl daemon-reload
Remove XAMPP symbolic links (if any):
If you created any symbolic links for XAMPP, remove them.
Run the following command:
$ sudo rm /usr/bin/xampp
Clean up residual files:
Check for any residual files or directories and remove them manually if necessary.
Example:
$ sudo find / -name ‘lampp’ -exec rm -rf {} +
Verification
Verify the uninstallation:
Ensure that the XAMPP directory has been completely removed.
Run the following command:
$ ls /opt
Check for running services:
Ensure that there are no running XAMPP services.
Run the following command:
$ sudo ps aux | grep lampp
Reboot (Optional)
Reboot your system to ensure that all changes take effect properly:
sudo reboot
By following these steps, you should be able to completely uninstall XAMPP from your Linux system. If you encounter any issues, double-check each step and ensure that all related files and services have been removed.