Skip to content

Instantly share code, notes, and snippets.

@benvanik
Created February 21, 2012 21:17
Show Gist options
  • Save benvanik/1879006 to your computer and use it in GitHub Desktop.
Save benvanik/1879006 to your computer and use it in GitHub Desktop.
Update Chromium on Linux to the latest version
#!/bin/bash
cd ~/Downloads/
if [ ! -x /usr/bin/curl ]; then
echo "Didn't find curl at /usr/bin/curl. Install with 'sudo apt-get install curl'."
exit 1
fi
echo -n "Determining latest build... "
LATEST=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE`
echo "done!"
echo "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$LATEST/chrome-linux.zip"
echo -n "Downloading build for $LATEST... "
wget http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/$LATEST/chrome-linux.zip
echo "done!"
echo -n "Deleting old install... "
rm -rf chrome-linux
echo "done!"
echo -n "Unpacking new install... "
unzip -q chrome-linux.zip
echo "done!"
echo -n "Cleaning up... "
rm -f chrome-linux.zip
echo "done!"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment