How do I upgrade VirtualBox? (Installed manually from Oracle RPM)

What is the proper way (using zypper) to upgrade VirtualBox? I just downloaded VirtualBox-5.2-5.2.26_128414_openSUSE132-1.x86_64.rpm (I’m currently on version 5.1).

Is the proper thing to do to:

  1. Uninstall the current version with zypper rm -u VirtualBox-5.1?
  2. Install the new rpm with zypper in VirtualBox-5.2-5.2.26_128414_openSUSE132-1.x86_64.rpm

Is that right?

Using LEAP 42.1

Leea 42.1 is out of support.

Only supported Versions are Leap 42.3 and Leap 15.0.

And you can get Virtualbox from the OSS Repo by:

zypper in virtualbox virtaulbox-qt

Since your system likely needs to be upgraded or re-installed, you should tend to that first (and upgrade to at least 15.0, 42.3 EOL is about 2 mths away).

If you have enough disk space on your machine, you can try installing a dual-boot to see if you can easily migrate your Guests from the older to the newer Virtualbox… By dual-booting you could simply modify the path to your VMs or copy a VM to your new location easily.

Backup your VMs (regular backups, not virtualization based backups) in case you find yourself unable to run and then upgrade your existing VMs (I think you shouldn’t have a problem going from 5.1 to 5.2 but don’t take chances). Upgrade to 15.1, and you can maximize the time before you’ll need to upgrade your HostOS again.