Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.