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):

 

2 thoughts on “New Virtualbox version, script for easy update of extension pack

  1. How about using the ‘LATEST.TXT’:
    http://download.virtualbox.org/virtualbox/LATEST.TXT

    #!/bin/bash
    echo "Fetching latest Version"
    Version=`wget -qO - http://download.virtualbox.org/virtualbox/LATEST.TXT|cat;`
    
    if [[ "${Version}" != "" ]]
    then
    	ExtPackFile=Oracle_VM_VirtualBox_Extension_Pack-${Version}-77440.vbox-extpack
    	ExtPackURL=http://download.virtualbox.org/virtualbox/${Version}/${ExtPackFile}
    
    	echo "Downloading and installing ${ExtPackFile}" && \
    	wget -qO /tmp/virtualbox/${ExtPackFile} ${ExtPackURL} && \
    	VBoxManage extpack install --replace ${ExtPackFile}
    
    fi
  2. Because the “-77440” suffix is different with each version. Although I just noticed that there is also a version of the file in the directory without that suffix which would allow using the LATEST.TXT to build the download URL

Comments are closed.