Ask Your Question
2

Basic question on Installing Virtualbox on Fedora 28

asked 2018-11-12 02:28:41 -0500

msullivan gravatar image

I would like to install the latest version of Virtual Box (5.2.22) on my Fedora 28. I have a regular user (john) .

After configuring the repo , I can run the following command to install Virtual Box

$ yum install VirtualBox-5.2

or I can download the .rpm installer file of virtual box and run the following

$ yum install <installerFile>.rpm

But, either ways, the above commands need user john to have sudo privileges.

So, should I run the above command as root user or add john to /etc/sudoers and let john run the yum install like below

$ sudo yum install VirtualBox-5.2

Which is the recommended way ?

Aren't they both essentially the same ? ie when john runs $ sudo yum install VirtualBox-5.2 , john is just assuming the privileges of root user. Right ?

edit retag flag offensive close merge delete

Comments

2

Instead of installing the .rpm file, I would suggest you add Oracle’s repository for Fedora. That way you will receive updates within dnf.

florian gravatar imageflorian ( 2018-11-12 14:45:04 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2018-11-12 03:57:24 -0500

villykruse gravatar image

They are essentially the same. And yum is essentially the same ad dnf, at least until yum is removed in some future release.

edit flag offensive delete link more

Comments

Ok. Thanks villykruse.

Lets say I install virtualbox as root user using either the below ways. Will john user or any other OS user in my Fedora machine have any issue using Virtualbox VMs ?

$ yum install VirtualBox-5.2
or 
$ yum install <installerFile>.rpm
msullivan gravatar imagemsullivan ( 2018-11-12 04:05:00 -0500 )edit
1

i think no , there will be no problems.

sahil_uzumaki09 gravatar imagesahil_uzumaki09 ( 2018-11-12 05:51:14 -0500 )edit
1

All rpm packages you install are shared and can be used by all users. Some of them requires root privileges if they can modify the system in a way that affects all users. For example setting date and time affects all users and thus requires root. That is also the case for installing rpm packages which you can only do as root (or sudo; which is basically the same thing).

So running dnf as root or running with sudo makes no difference.

villykruse gravatar imagevillykruse ( 2018-11-12 06:24:04 -0500 )edit
1

Remember, before you install VirtualBox-5.2, install all dependencies such as gcc, make, perl, kernel-devel, kernel-headers, dkms

florian gravatar imageflorian ( 2018-11-12 14:48:44 -0500 )edit

The advantage of installing VirtualBox from RpmFusion is that the dependencies are taken care of automatically by dnf, including installing akmods.

villykruse gravatar imagevillykruse ( 2018-11-13 00:16:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-11-12 02:28:41 -0500

Seen: 108 times

Last updated: Nov 12 '18