Console Extension Pack installation
Posted: 2. Sep 2011, 17:18
Is there any way to install VM VirtualBox Extension Pack directly from command line console? I have not find any instructions for that
End user forums for VirtualBox
https://forums.virtualbox.org/
Code: Select all
VBoxManage extpack install [--replace] <tarball> |
uninstall [--force] <name> |
cleanup
Code: Select all
#!/bin/bash
version=$(vboxmanage -v)
echo $version
var1=$(echo $version | cut -d 'r' -f 1)
echo $var1
var2=$(echo $version | cut -d 'r' -f 2)
echo $var2
file="Oracle_VM_VirtualBox_Extension_Pack-$var1-$var2.vbox-extpack"
echo $file
wget http://download.virtualbox.org/virtualbox/$var1/$file -O /tmp/$file
#sudo VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
sudo VBoxManage extpack install /tmp/$file --replace
works perfect, thank you very much!Sasquatch wrote:May want to use my script for upgrades:The second to last line is commented because it didn't work with 4.1.0 due to a bug. 4.1.2 still has a bug that you need to enter --replace after the tarball. 4.1.4, the next maintenance release, will have that fixed so it doesn't matter if --replace goes before or after the tarball. You can uncomment the line if you want and not use the --replace option. When you get a new major release, which would most likely be 4.2.0, the ExtPack of 4.1 has to be removed first, it can't be replaced. At least I had that problem when going from 4.0 to 4.1. We'll have to wait and see if it's required with the --replace option.Code: Select all
#!/bin/bash version=$(vboxmanage -v) echo $version var1=$(echo $version | cut -d 'r' -f 1) echo $var1 var2=$(echo $version | cut -d 'r' -f 2) echo $var2 file="Oracle_VM_VirtualBox_Extension_Pack-$var1-$var2.vbox-extpack" echo $file wget ***: download. virtualbox. org/virtualbox/$var1/$file -O /tmp/$file #sudo VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" sudo VBoxManage extpack install /tmp/$file --replace