How to install Oracle VirtualBox on Oracle Linux/Fedora/RHEL/CentOS using YUM

Last week we saw how to install VirtualBox on Windows. VirtualBox is available for various flavours of Linux. Today we shall see how to install VirtualBox on Oracle Linux/Fedora/RHEL/CentOS using YUM. Installing and using VirtualBox is quite simple. All you need is to follow the below guide which installs VirtualBox version 4.3.6 using YUM.

Step1: Configure public YUM repo for VirtualBox

Using your favorite editor create the file virtualbox.repo under /etc/yum.repos.d/ and add the below lines of code:

name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox

Step2: Install VirtualBox using yum

After the YUM repository configuration, run the below command:

#yum install VirtualBox-4.3

Sample Output:

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-4.3.x86_64 0:4.3.6_91406_el5-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
VirtualBox-4.3 x86_64 4.3.6_91406_el5-1 virtualbox 87 M

Transaction Summary
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 87 M
Is this ok [y/N]: y
Downloading Packages:
VirtualBox-4.3-4.3.6_91406_el5-1.x86_64.rpm | 87 MB 07:19
Running rpm_check_debug

Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : VirtualBox-4.3 1/1

Creating group ‘vboxusers’. VM users must be member of that group!

No precompiled module for this kernel found — trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [ OK ]

VirtualBox-4.3.x86_64 0:4.3.6_91406_el5-1


Below video shows the yum repo configuration and installation of VirtualBox using YUM.

Topics :

vps germany

Get Free Email Updates

Disclaimer: The content published in this article is the views of the author only. Techglimpse does not gurantee accuracy, completness or validity. If you believe the content on this post violates your copyright, please send us a mail for removal. Read more.