The documentation page on https://www.virtualmin.com/documentation/cloudmin/installation/uninstalling says:
Since Cloudmin is built on top of Webmin, un-installing it is simply a matter of removing Webmin and some additional modules. The commands for this on CentOS, Fedora or Redhat Enterprise are :
rpm -e webmin wbm-server-manager wbt-virtual-server-theme wbt-virtual-server-mobile wbm-security-updates rm /etc/yum.repos.d/cloudmin
However, running the above command gives:
rpm -e webmin wbm-server-manager wbt-virtual-server-theme wbt-virtual-server-mobile wbm-security-updates rm /etc/yum.repos.d/cloudmin
error: package rm is not installed
error: package /etc/yum.repos.d/cloudmin is not installed
when in fact the rm command is installed. So I guessed the documentation page is missing a break line or && operand, and came to conclusion the correct syntax should be:
rpm -e webmin wbm-server-manager wbt-virtual-server-theme wbt-virtual-server-mobile wbm-security-updates && rm /etc/yum.repos.d/cloudmin
So please have the documentation page corrected.
However, even with the correct syntax the above command is failing to give an error:
rpm -e webmin wbm-server-manager wbt-virtual-server-theme wbt-virtual-server-mobile wbm-security-updates && rm /etc/yum.repos.d/cloudmin
error: Failed dependencies:
webmin >= 1.420 is needed by (installed) wbm-virtualmin-sqlite-1.4-1.noarch
webmin >= 1.420 is needed by (installed) wbm-virtualmin-git-1.7-1.noarch
/usr/libexec/webmin is needed by (installed) wbm-virtualmin-sqlite-1.4-1.noarch
/usr/libexec/webmin is needed by (installed) wbm-virtualmin-git-1.7-1.noarch
So I guess uninstalling Cloudmin is not that straightforward and simple as the documentation page suggests. So please update it with the additional steps to preliminarily remove the dependencies first.
Thanks!
Comments
Submitted by yngens on Thu, 08/03/2017 - 00:07 Comment #1
Well, after running the
rpm -e wbm-virtualmin-sqlite-1.4-1.noarch && rpm -e wbm-virtualmin-git-1.7-1.noarch
command I gave another try to the above command just to get:
rpm -e webmin wbm-server-manager wbt-virtual-server-theme wbt-virtual-server-mobile wbm-security-updates && rm /etc/yum.repos.d/cloudmin
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.
readdir() attempted on invalid dirhandle $DIR at /usr/libexec/webmin/at/linux-lib.pl line 10.
closedir() attempted on invalid dirhandle $DIR at /usr/libexec/webmin/at/linux-lib.pl line 29.
rm: cannot remove ‘/etc/yum.repos.d/cloudmin’: No such file or directory
So the last part of the oneliner command on the documentation page should be corrected to:
rm /etc/yum.repos.d/cloudmin.repo
Submitted by andreychek on Thu, 08/03/2017 - 09:13 Comment #2
Howdy -- yeah there was a formatting error that was causing those lines not to display properly, but that's been corrected. Thanks for the heads up!
And yeah those instructions just show how to remove Cloudmin; if there's Virtualmin packages installed, that would indeed prevent removal of the Webmin package.
It sounds like you got things working, but feel feel free to let us know if you have any questions, or if you run into any additional issues!