Installing Oracle VM VirtualBox on Fedora 30/31

Oracle VM VirtualBox is a free, open source, cross-platform application for creating, managing and running virtual machines (VMs). Oracle VM VirtaulBox is a good free alternative to other type 2 virtualization softwares like VMware Workstation/Fusion or Mirosoft Hyper-V. VirtualBox may be installed on Windows, macOS, Linux, Solaris and OpenSolaris.

Oracle VirtualBox
Three Virtual Machines running on VirtualBox


While there is more than one method for installing VirtualBox, the easiest and most effective one is to download the binaries from VirtualBox website and install it on your host machine. This will ensure you’ll have the latest version at the time of installation.

This short post go through the steps to download Oracle VM VirtualBox and install it using the rpm command a Fedora 30 machine.

Check your OS version

$ cat /etc/*-release

Fedora release 30 (Thirty)
VERSION="30 (Workstation Edition)"

Update your system

$ sudo yum update -y

Download Oracle VM Virtual Box

$ wget

Install Oracle VM VirtualBox

Once the package downloaded, you can install it using the rpm command

$ sudo rpm -i VirtualBox-6.0-6.0.10_132072_fedora29-1.x86_64.rpm

Using the rpm to install packages works perfectly fine. However, dnf is a much better method to keep your system packages up to date because dnf allows operations on remote repositories listed in configuration files (usually at /etc/yum.repo.d/ ).

dnf is basically a new and improved yum. it has forked from yum and will ultimately replace it. Some benefits of using dnf over rpm are:

  • Install an rpm x from any configured repository.
  • Update all local packages with newer copies found at any configured repository.
  • Search a certain repository for a package matching a certain criteria.

To install the Oracle Virtual Box package using dnf

$ sudo dnf localinstall VirtualBox-6.0-6.0.10_132072_fedora29-1.x86_64.rpm


Fedora 30 openh264 (From Cisco) - x86_64        331  B/s | 542  B     00:01    
Fedora 30 openh264 (From Cisco) - x86_64        1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0xCFC659B9:
 Userid     : "Fedora (30) <>"
 Fingerprint: F1D8 EC98 F241 AAF2 0DF6 9420 EF3C 111F CFC6 59B9
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-30-x86_64
Is this ok [y/N]: y
Fedora 30 openh264 (From Cisco) - x86_64        2.4 kB/s | 5.1 kB     00:02    
Dependencies resolved.
 Package                    Arch   Version                   Repository    Size
 VirtualBox-6.0             x86_64 6.0.10_132072_fedora29-1  @commandline 110 M
Installing dependencies:
 python2                    x86_64 2.7.16-2.fc30             updates       46 k
 python2-libs               x86_64 2.7.16-2.fc30             updates      6.3 M
 compat-libvpx5             x86_64 1.7.0-1.fc30              fedora       793 k
   Verifying        : VirtualBox-6.0-6.0.10_132072_fedora29-1.x86_64                                                                                                  8/8 

  VirtualBox-6.0-6.0.10_132072_fedora29-1.x86_64              python-unversioned-command-2.7.16-2.fc30.noarch              python2-pip-19.0.3-1.fc30.noarch              
  python2-setuptools-40.8.0-1.fc30.noarch                     python2-2.7.16-2.fc30.x86_64                                 python2-libs-2.7.16-2.fc30.x86_64             
  compat-libvpx5-1.7.0-1.fc30.x86_64                          gdbm-1:1.18-4.fc30.x86_64                                   


Once the installation is finished, you will be able to launch Oracle VM VirtualBox from the GNOME desktop. Click on Activities and search for VirtualBox

You will now be able to run and use virtual machines on your Fedora machine..

Leave a Comment

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