How to Uninstall Webmin on CentOS 6.3

To uninstall Webmin on CentOS 6.3, you’ll need to remove the installed package and its associated files, and then disable the repository used to install it. Here’s a step-by-step guide to uninstalling Webmin on CentOS 6.3:

Step 1: Stop the Webmin Service

First, check the Webmin version and stop the Webmin service by running the following command:

[root@centos63 ~]# rpm -qa webmin
webmin-1.600-1.noarch
[root@centos63 ~]# sudo service webmin stop

Step 2: Remove the Webmin Package

Next, remove the Webmin package using the yum package manager:

[root@centos63 ~]# sudo yum remove webmin -y

This command will remove Webmin and its dependencies from your system.

[root@centos63 ~]# sudo yum remove webmin-1.600-1.noarch
Loaded plugins: fastestmirror, presto, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.600-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package               Arch                  Version                 Repository                Size
====================================================================================================
Removing:
 webmin                noarch                1.600-1                 installed                 56 M

Transaction Summary
====================================================================================================
Remove        1 Package(s)

Installed size: 56 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : webmin-1.600-1.noarch                                                            1/1
Running uninstall scripts ..
Subroutine list_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 92.
Subroutine list_servers_sorted redefined at /usr/libexec/webmin/servers/servers-lib.pl line 111.
Subroutine get_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 143.
Subroutine save_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 158.
Subroutine delete_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 175.
Subroutine can_use_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 188.
Subroutine list_all_groups redefined at /usr/libexec/webmin/servers/servers-lib.pl line 208.
Subroutine logged_in redefined at /usr/libexec/webmin/servers/servers-lib.pl line 278.
Subroutine get_server_types redefined at /usr/libexec/webmin/servers/servers-lib.pl line 303.
Subroutine this_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 313.
Subroutine get_my_address redefined at /usr/libexec/webmin/servers/servers-lib.pl line 332.
Subroutine address_to_broadcast redefined at /usr/libexec/webmin/servers/servers-lib.pl line 361.
Subroutine test_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 375.
Subroutine find_cron_job redefined at /usr/libexec/webmin/servers/servers-lib.pl line 394.
Subroutine find_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 407.
  Verifying  : webmin-1.600-1.noarch                                                            1/1

Removed:
  webmin.noarch 0:1.600-1

Complete!

Step 3: Delete Webmin Configuration Files and Directories

Optionally, you may want to remove the Webmin configuration files and directories. To do this, execute the following commands:

[root@centos63 ~]# sudo rm -rf /etc/webmin
[root@centos63 ~]# sudo rm -rf /usr/libexec/webmin

These commands will delete the Webmin configuration files and its installation directory, respectively.

See also  How to Remove Webmin from Linux CentOS/RHEL

Step 4: Disable the Webmin Repository

To prevent the Webmin repository from being used in the future, you can disable it. Open the Webmin repository file in a text editor:

[root@centos63 ~]# sudo nano /etc/yum.repos.d/webmin.repo

Find the line that says enabled=1 and change it to enabled=0. Save the changes and close the text editor.

Step 5: Clean Up Yum Cache

Finally, clean up the Yum cache to remove any remaining Webmin-related data:

[root@centos63 ~]# sudo yum clean all

Commands Mentioned:

  • sudo service webmin stop – Stop the Webmin service.
  • sudo yum remove webmin -y – Remove the Webmin package and its dependencies.
  • sudo rm -rf /etc/webmin – Delete the Webmin configuration files.
  • sudo rm -rf /usr/libexec/webmin – Delete the Webmin installation directory.
  • sudo nano /etc/yum.repos.d/webmin.repo – Open the Webmin repository file in a text editor.
  • sudo yum clean all – Clean up the Yum cache.
See also  How to Stop, Start and Reload Webmin Service on CentOS 5.7

Conclusion

You have successfully uninstalled Webmin on CentOS 6.3. If you have any questions, comments, or suggestions for improvement, please feel free to share your thoughts in the comments section below. Your feedback is invaluable to us, and it helps us create better and more informative content for our users.

Comments

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *