Uninstalling Virtualmin

Posted 2008-12-30 19:05 by Joe

Uninstalling Virtualmin

There are many levels of "uninstalling" Virtualmin, but the most common is simply that you don't want the Virtualmin GUI or any of its plugins installed. The simplest way to accomplish this, assuming you used the automated installation process (install.sh), is to re-run install.sh with the - -uninstall flag:

sh install.sh --uninstall

This is a rather haphazard uninstall routine, but it will remove pretty much everything Virtualmin-specific while leaving behind the services that it manages (like Apache and BIND).

Note This will remove Virtualmin related meta-data. This should never be used to allow you to "reinstall" Virtualmin on a production system. If you have Virtualmin running on a production system with accounts, you should not try to install Virtualmin again. If there are any problems with your running installation, let us know and we'll help you fix the problems. However, it can be used to cleanup after a prior failed install--perhaps after we've fixed a bug or something in the installer and you'd like to run it again but run into conflicts (perhaps virtualmin-release is in the way).

Downgrading Virtualmin Professional to GPL

If you no longer need the features of Virtualmin Professional, but wish to continue to use Virtualmin on your system, you can downgrade quite easily.

In its simplest form, you merely install the Virtualmin GPL module over the Virtualmin Professional module. How that is done depends on your OS and how Virtualmin was initially installed.

RPM-based systems

On RPM-based distributions, like CentOS or RHEL, download the latest Virtualmin GPL RPM from http://software.virtualmin.com/gpl/universal/

Then install it using RPM with the --oldpackage option. For example:

rpm -Uvh --oldpackage wbm-virtual-server-3.64.gpl-2.noarch.rpm

If you were also using our yum repository (which is true if you used install.sh to install Virtualmin), you will need to switch the the GPL repository. To do that, install the latest version of the virtualmin-release package for your operating system and version. For example, for CentOS 5, you could run the following command:

rpm -Uvh --oldpackage http://software.virtualmin.com/gpl/centos/5/i386/virtualmin-release-latest.noarch.rpm

deb-based systems

On Debian and Ubuntu systems update /etc/apt/sources.list to point to the GPL version of the Virtualmin repository for your OS (merely insert gpl into the path just after the domain name).

Once apt has been reconfigured, you can use apt-get to install the GPL version of the webmin-virtual-server module.

.wbm-based installs

If you didn't use packages, and instead used the .wbm format of module, download the latest version of the virtual-server module from http://software.virtualmin.com/gpl/wbm and install it using the Webmin modules module, found in the Webmin menu under Webmin:Webmin Configuration:Webmin Modules.

Final steps

Once you've downgraded the virtual-server module to the GPL version, you can change the /etc/virtualmin-license file to :

SerialNumber=GPL
LicenseKey=GPL

Then remove the /etc/webmin/virtual-server/licence.pl , sendratings.pl and fcgiclear.pl cron jobs. You can use the Webmin System:Schedule Cron Jobs module to locate and delete that job, if you like.