How do I upgrade Virtualmin GPL?

Hello all,

I have Virtualmin 3.51.gpl running on one of my Debian 4.0 machines and would like to upgrade it to the latest release but I can’t seem to find a way to upgrade it.

At the bottom of the post http://www.virtualmin.com/forums/news/new-virtualmin-virtual%11server-3.55.html announcing v3.56 it states:

As always, for security, stability, and awesomeness reasons, we recommend running the latest version of Virtualmin. So, click the button in the Virtualmin Package Updates section of your System Information page to start the upgrade.

The problem is that I can’t see the Virtualmin Package Updates section so I can’t see the upgrade button.

I’ve checked /etc/apt/sources.list and there aren’t any virtualmin repos listed.

So, my question is, how do I upgrade Virtualmin?

Thanks,

Steve.

I have this same question.

I am running 3.50.gpl and saw in another thread here that I need to install the Virtualmin Package Updates module but I cannot find where to download it.

In webmin/webmin configuration/webmin modules for "Third Party Module From" I click select but there is no Virtualmin Package Updates module in the list of available modules that appears.

So I thought well it must be listed on the webmin site all modules page but it’s not there either :frowning:

Ok I found how to update virtualmin through webmin/webmin configuration/upgrade webmin and them clicking on the upgrade modules tab. Yeah now running 3.56!

I would still like to find out how to get the Virtualmin Package Updates section added to the system information page please.

Hey guys,

If you didn’t install Virtualmin via our automated install script, your package manager won’t be configured to use our software repositories.

For Virtualmin GPL on Debian, add this to sources.txt:

deb http://software.virtualmin.com/gpl/debian/ virtualmin-etch main

The package updates module is named "security-updates" and can be found in our repositories.

For generic systems not installed via RPM or deb packages:

http://software.virtualmin.com/gpl/wbm/

If you have an RPM or deb based system that is supported by our repositories, and you installed using a package rather than wbm, you can use the more powerful native package manager for your Virtualmin updates (but security-updates will work with any of the sources of packages).

To configure security-updates (once installed) for use with the Virtualmin GPL wbm repository, you could run the following commands:

[code:1]
echo "upsource=http://software.virtualmin.com/wbm/updates.txt http://www.webmin.com/updates/updates.txt" >>$webmin_config_dir/webmin/config
echo "upthird=1" >>$webmin_config_dir/webmin/config
echo "upuser=$SERIAL" >>$webmin_config_dir/webmin/config
echo "uppass=$KEY" >>$webmin_config_dir/webmin/config
echo "upshow=1" >>$webmin_config_dir/webmin/config
[/code:1]

Note that for anyone starting from scratch (e.g. with a freshly installed OS), you should always just use the install script provided on our download page–it handles all of this stuff automatically (along with all of the other tedious configuration that goes into making a Virtualmin system spin nicely).

Oops…I posted the Professional repo instructions. Sorry, you’d do this for GPL:

[code:1]
echo "upsource=http://software.virtualmin.com/gpl/wbm/updates.txt http://www.webmin.com/updates/updates.txt" >>$webmin_config_dir/webmin/config
echo "upthird=1" >>$webmin_config_dir/webmin/config
echo "upshow=1" >>$webmin_config_dir/webmin/config
[/code:1]

Note that you need to set the variable webmin_config_dir to /etc/webmin (or /usr/local/etc/webmin or /opt/etc/webmin, or whatever is right for your system) before running these commands:

export webmin_config_dir=/etc/webmin

And, for anyone using the above one for Virtualmin Professional, you’d also need to set SERIAL and KEY to the serial number and license key.

Joe wrote:

Hey guys,

If you didn’t install Virtualmin via our automated install script, your package manager won’t be configured to use our software repositories.

For Virtualmin GPL on Debian, add this to sources.txt:

deb http://software.virtualmin.com/gpl/debian/ virtualmin-etch main

Thanks for the info Joe!

What would be the right text to add for a CentOS 4 system?

Just install the virtualmin-release package:

rpm -ivh http://software.virtualmin.com/gpl/centos/4/i386/virtualmin-release-latest.noarch.rpm

Do I need to uninstall my current virtualmin install first?

OK I ran the RPM and this was the output:

# rpm -ivh http://software.virtualmin.com/gpl/centos/4/i386/virtualmin-release-latest.noarch.rpm Retrieving http://software.virtualmin.com/gpl/centos/4/i386/virtualmin-release-latest.noarch.rpm warning: /var/tmp/rpm-xfer.COXkkj: V3 DSA signature: NOKEY, key ID a0bdbcf9 Preparing... ########################################### [100%] 1:virtualmin-release ########################################### [100%] Running updatedb so locate works...this will take a little while. Attempting to import various system RPM-GPG-KEY files...Errors may occur, if you've already imported them. It is safe to ignore these errors.

No change to the system information page in webmin so I thought well it didn’t complete the install so I ran the RPM again and this was the output:

# rpm -ivh http://software.virtualmin.com/gpl/centos/4/i386/virtualmin-release-latest.noarch.rpm Retrieving http://software.virtualmin.com/gpl/centos/4/i386/virtualmin-release-latest.noarch.rpm Preparing... ########################################### [100%] package virtualmin-release-1.0-1.rhel.gpl is already installed

So what did I do wrong?

Probably nothing. The package updates check doesn’t happen every time you load the page (that would kill your poor defenseless system with extraneous work!). Click on through to the package updates module, and click the refresh button.

Click on through where to the package updates module?

I can’t find anything in webmin or virtualmin that is listed as a package updates module.

My System Info config page looks like this and as you can the checkboxes are check to show the package updates:

But my System Info page looks like this even after refresh system info is clicked:

Hmmm…Well, browse directly to the module and see if it is working. It’ll be in the System menu (or in Un-used Modules, maybe).

You did say above that you had installed the security-updates module, correct?

Joe wrote:

Hmmm...Well, browse directly to the module and see if it is working. It'll be in the System menu (or in Un-used Modules, maybe).

You did say above that you had installed the security-updates module, correct?

Thanks again for helping me Joe and sorry I am such a newbie.

I have not installed the security-updates module as it is not listed in the webmin or third party module lists in webmin/webmin configuration/webmin modules. Where do I get it?

Also the package updates module is not listed under System or Un-Used Modules :frowning:
I feel like I am on a merry go round :slight_smile:

http://software.virtualmin.com/gpl/universal/wbm-security-updates-2.6-1.noarch.rpm

rpm -ivh http://software.virtualmin.com/gpl/universal/wbm-security-updates-2.6-1.noarch.rpm

Retrieving http://software.virtualmin.com/gpl/universal/wbm-security-updates-2.6-1.noarch.rpm
error: Failed dependencies:
/usr/libexec/webmin is needed by wbm-security-updates-2.6-1.noarch
webmin >= 1.221 is needed by wbm-security-updates-2.6-1.noarch
[root@vps /]#

Why the directory error?
Also says I need greater than 1.221 but I am running the latest at 1.410

Why did you install from tarball on an RPM-based system? That make-a-no-sense. :wink:

OK, so you need to forget about the RPM-based repositories…they’ll just break everything. You can’t go from tarball to RPMs safely (because RPM assumes that it’s not installed if it’s not in the RPM database and so it overwrites things willy-nilly).

Backtrack, and use the wbm repository I talked about earlier (that was post #12074 in this thread). Do NOT use the CentOS/Universal RPM repository, if you didn’t install Webmin and Virtualmin using RPM packages. You should probably remove the virtualmin-release package I told you to install, as well. It’s an accident waiting to happen.

Oh, and #12073 links to the wbm repository.

For future installs, even if you aren’t going to use our automated install script, at least use RPM or deb packages, if you’re on an RPM-based or deb-based distribution. Tarballs should be considered a last resort, because there are no tools for managing tarball installations except those that we write–and, let’s be honest, the package management experts working on RPM/yum and dpkg/apt-get have put in years of work to get as good as they are. We should all take advantage of that great work, if we can. So, use tarballs on systems that don’t have reasonable package management…like FreeBSD, Mac OS X, Slackware, etc. Not on systems with good package managers like RHEL/CentOS, Fedora, Debian, Ubuntu, etc.

Joe wrote:

Why did you install from tarball on an RPM-based system? That make-a-no-sense. ;-)

Because I am still a newbie and I don’t-a-know-any-better! :slight_smile:

My system is still in testing mode so I can start over. All my real sites are still on a separate shared system.

I noticed on the Virtualmin GPL Installer page that it says that the install script that “installs RPM packages for Webmin, Usermin and the Virtualmin modules, plus modified versions of dependent programs like Apache and PHP” is ideally for a CentOS 5 system. Does that mean that it will not properly run and complete an rpm based install on a CentOS 4 system?

If it will run on CentOS 4 what would be the best steps to take to do that from where I am now?

If it won’t run on a CentOS 4 system what would be the alternative best route to start over and get my install of Virtualmin and Webmin installed using RPM?

Also once I am set up properly what are things I should not do that would mess it up? Would it still be safe to use the webmin/webmin config/webmin modules module up install modules? That uses wbm. Does that conflict with RPM?