Webmin is a popular web-based control panel that provides a graphical user interface for managing Linux systems. However, if you no longer require Webmin on your CentOS or RHEL server, you may want to remove it to free up resources and ensure a clean system. In this tutorial, we will walk you through the steps to remove Webmin from your Linux server.
Step 1: Log in as Root:
To remove Webmin from your CentOS/RHEL server, you need to have root access or be logged in as a user with sudo privileges. Open your terminal or SSH into your server as the root user.
Step 2: Stop the Webmin Service:
Before uninstalling Webmin, it’s important to stop the Webmin service to ensure a smooth removal process. Execute the following command to stop the Webmin service:
systemctl stop webmin
This command will stop the Webmin service on your CentOS/RHEL server.
Step 3: Remove Webmin Packages:
Next, we need to remove the Webmin packages from your system. Use the package manager, either yum or dnf, depending on your CentOS/RHEL version. Execute the appropriate command:
For CentOS 7 and earlier:
yum remove webmin
For CentOS 8 and later:
dnf remove webmin
You will be prompted to confirm the removal. Type ‘y’ and press Enter to proceed with the uninstallation.
Step 4: Remove Webmin Configuration Files:
After removing the Webmin packages, it’s recommended to remove any leftover configuration files to ensure a clean uninstallation. Execute the following command:
rm -rf /etc/webmin
This command deletes the /etc/webmin directory and its contents from your CentOS/RHEL server.
Step 5: Restart the System:
To complete the removal process, it is recommended to restart your server. You can do this by executing the following command:
After the server restarts, Webmin will be completely removed from your CentOS/RHEL system.
In this guide, we have walked you through the steps to remove Webmin from your Linux CentOS/RHEL server. By following these steps, you can uninstall Webmin, stop the Webmin service, remove Webmin packages, delete Webmin configuration files, and ensure a clean system. If you no longer require the features and functionality provided by Webmin, this guide has helped you free up resources and maintain a streamlined server environment.
If you have any further questions or suggestions, feel free to leave a comment.