New Virtualbox version, script for easy update of extension pack
VirtualBox 4.1.10 was released yesterday with a few nice things in the changelog. Updating virtualbox itself is easy, just download the package and update it. Since I seem to stumble over the update of the extension pack every time (on my headless system) I thought I’d write a small script this time so I don’t have to rethink it next time (automatically downloads and installs the current extpack):
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
URL="$(wget -qO - https://www.virtualbox.org/wiki/Downloads|grep "Oracle VM VirtualBox Extension Pack"|sed "s/.\+\(http:\/\/download.virtualbox.org.\+.vbox-extpack\).\+/\1/")"
File=${URL##*/}
if [[ "${URL}" != "" && "${File}" != "" ]]
then
echo "Downloading and installing ${File}" && \
wget -qO ${File} ${URL} && \
VBoxManage extpack install --replace ${File}
fi
|