Page 1 of 1

VirtualBox 4.0.2 - Kernel and Update questions (newbie)

Posted: 27. Jan 2011, 11:01
by nomnex
I have installed VirtualBox-4.0-4.0.2 on Fedora LXDE 13 & 14 from the Sun download page

I have a 4 questions:

1. additional packages to install:

# yum install dkms kernel-devel gcc | gcc-c++

Some guides recommend 'gcc' and others 'gcc-c++, what is the difference if any? I have installed 'gcc'

2. kernel-devel

2.a) Does the kernel-devel update automatically as the default kernels, or do I have to update separately?

2.b) Do I have to re-run the command below after each kernel update?

Code: Select all

# /etc/init.d/vboxdrv setup
As question 2 goes, you it is easy to find out that I am a little confuse. Until then, I was using the generic kernels. The updates were automatic. YUM was keeping only the 3 last ones. What's with kernel-dev?

3. Update to the next release - how do I do it?

3.a) do I have to remove everything + re-install everything + re-run the setup:

# yum remove VirtualBox-4.0-4.0.2 kernel-update dkms gcc
# yum install VirtualBox-4.0-4.0.n kernel-update dkms gcc
# /etc/init.d/vboxdrv setup

3.b) do I only remove VirtualBox + re-run the setup after installing the new version?

3.c) do I only remove VirtualBox, and install the new version (without re-running the setup)?

I would go for 3.b, but I am not positive.

4. if I want to remove completely remove VirtualBox from my system:

What command to I pass? Do I remove also all the additional packages (gcc, kernel-devel, dkms)?

Thank you.

PS: if you don't know the answers, or if you don't have the time to answer my questions that's fine, but just don't redirect me to some generic help, or forum links. I am reading the Virtual box manual, and I just need a little guidance for the start.

Re: VirtualBox 4.0.2 - Kernel and Update questions (newbie)

Posted: 27. Jan 2011, 12:13
by fixedwheel
2.b) Do I have to re-run the command below after each kernel update?

Code: Select all

# /etc/init.d/vboxdrv setup
dkms takes care of that, thats why you install dkms ...
3. Update to the next release - how do I do it?
3.a) do I have to remove everything + re-install everything + re-run the setup:
# yum remove VirtualBox-4.0-4.0.2 kernel-update dkms gcc
# yum install VirtualBox-4.0-4.0.n kernel-update dkms gcc
# /etc/init.d/vboxdrv setup
no, you don't remove your kernel nor dkms and the gnu C-compiler gcc

i don't know about Fedora/rpm specific as i'm running Debian host: Debian VBox package dependencies require major version updates as remove old - install new VBox package, while minor updates like 4.0.2 to 4.0.n don't need a remove at all, its just a package update.

nevertheless you may want to follow the instructions how to add the virtualbox.org repository to your /etc/yum.repos.d/ => http://www.virtualbox.org/wiki/Linux_Downloads

Re: VirtualBox 4.0.2 - Kernel and Update questions (newbie)

Posted: 28. Jan 2011, 04:11
by nomnex
thank you for the feedback fixedwheel

questions 2

solved

question 3

(URL) http://www.virtualbox.org/wiki/Linux_Downloads : I should have read untill the end of the page :wink: If I want to install the sun repo now, do I have to first remove my version of VirtualBox 4.0.2., then install the repo, and $ yum update (or # apt-get update, on Debian)?

question 1

what is the difference between gcc and gcc-c++

question 4

in the event I want to completely remove VirtualBox from my system, do I run this command (the opposite of the install command)?

Code: Select all

# yum remove virtualbox dkms kernel-devel gcc

Re: VirtualBox 4.0.2 - Kernel and Update questions (newbie)

Posted: 28. Jan 2011, 09:45
by fixedwheel
If I want to install the sun repo now, do I have to first remove my version of VirtualBox 4.0.2.,
no, not necessary. Its simply when doing yum update next time you get any updated VBox 4.0.n (when available) as well as the Fedora updates
what is the difference between gcc and gcc-c++
C++ is the "C with Classes" enhancement to the C programming language
in the event I want to completely remove VirtualBox from my system, do I run this command (the opposite of the install command)?

Code: Select all

# yum remove virtualbox dkms kernel-devel gcc
do as you want, anyway dkms and kernel-devel can still be of use when installing device driver modules not included in your distribution and gcc is used when installing any software that is not prepackaged for your distribution

Re: VirtualBox 4.0.2 - Kernel and Update questions (newbie)

Posted: 1. Feb 2011, 01:40
by nomnex
Thank you fixedwheel.