You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The content of the file LATEST-STABLE.TXT gives us gives us the version (and with it the folder name) we need. We save this in the variable VBLV which we can use in the next commands:
With grep we get the lines with the generic installer and the extension pack. Then we use awk to get the second column and sed takes care of the asterisk, which we don't need. We save the results in the variables VBGI and VBEP respectively.
wget -qO- is the short version of wget -q -O - and means quiet (-q) output to standard output (-O -)
Now we can download the generic installer and the extension pack:
Then we have to make the installer executable and can run it afterwards:
chmod +x ${VBGI}
sudo ./${VBGI} install
The first of the next commands is not actually necessary and is only included for safety reasons. It ensures that the necessary kernel modules are built. The second command ensures that our currently logged-in user (logname) is assigned to the correct user group (this is necessary for accessing USB):
sudo rcvboxdrv setup
sudo usermod -a -G vboxusers $(logname)
And in the last step, we install the current extension pack:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the context of the other topic, which was also about VirtualBox, I have put together my own script to get the latest, stable version including the extension pack. Maybe this is also interesting or useful for someone else.
Here is the complete script. The breakdown comes afterwards.
Breakdown:
VBLV=$(wget -qO- https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT)
The content of the file
LATEST-STABLE.TXT
gives us gives us the version (and with it the folder name) we need. We save this in the variableVBLV
which we can use in the next commands:The
SHA256SUMS
file contains a list of file names with the respective hash. Here is an example:With
grep
we get the lines with the generic installer and the extension pack. Then we useawk
to get the second column andsed
takes care of the asterisk, which we don't need. We save the results in the variablesVBGI
andVBEP
respectively.wget -qO-
is the short version ofwget -q -O -
and means quiet (-q) output to standard output (-O -)Now we can download the generic installer and the extension pack:
Then we have to make the installer executable and can run it afterwards:
The first of the next commands is not actually necessary and is only included for safety reasons. It ensures that the necessary kernel modules are built. The second command ensures that our currently logged-in user (logname) is assigned to the correct user group (this is necessary for accessing USB):
And in the last step, we install the current extension pack:
sudo VBoxManage extpack install --replace ${VBEP}
Sources that I used:
Edited due to typos and adjusted the download of the extension pack.
Beta Was this translation helpful? Give feedback.
All reactions