28Sep/100
Chromium easy update
Update: The URL's no longer work, so this is busted. I've gone back to Firefox since 4.0 came out. It is heavier than Chrom(e|ium), but I was finding that there were some features I was really missing. As such, this still can serve as the basis for an update if given the correct URL's.
I'm a bleeding edge kind of guy. No, I'm not. When it comes to software, I'm generally a bleeding edge kind of guy. I really like Chromium. I hate going to the Chromium build site, downloading it, closing my browser, then moving it in place. I'm a lazy admin.
Here's a couple quick-n-dirty bash script that retrieves the latest Chromium build.
Mac Version
Special Notes:
#!/bin/bash echo -n "Retrieving latest build: " VER=$( curl -s http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST ) echo "$VER" TMPDIR=$( mktemp -d /tmp/chromium.XXXXX ) echo "Downloading Chromium: " curl -o ${TMPDIR}/chromium.zip http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/${VER}/chrome-mac.zip echo -n "Decompressing archive: " unzip -qqx ${TMPDIR}/chromium -d ${TMPDIR} echo "done" rm -rf /Applications/Chromium.app mv ${TMPDIR}/chrome-mac/Chromium.app /Applications/ rm -rf ${TMPDIR} echo "New Chromium installed!"
Linux Version
Special Notes:
#!/bin/bash echo -n "Retrieving latest build: " VER=$( curl -s http://build.chromium.org/f/chromium/snapshots/chromium-rel-linux-64/LATEST ) echo "$VER" TMPDIR=$( mktemp -d /tmp/chromium.XXXXX ) echo "Downloading Chromium: " curl -o ${TMPDIR}/chrome-linux.zip http://build.chromium.org/f/chromium/snapshots/chromium-rel-linux-64/${VER}/chrome-linux.zip echo -n "Decompressing archive: " 7z x -tzip -o${TMPDIR} ${TMPDIR}/chrome-linux.zip > /dev/null echo "done" if [ -d /opt/chrome-linux.1 ] then rm -rf /opt/chrome-linux.1 fi if [ -d /opt/chrome-linux ] then mv /opt/chrome-linux /opt/chrome-linux.1 fi mv ${TMPDIR}/chrome-linux /opt/ find /opt/chrome-linux -type d -exec chmod 2775 {} \; find /opt/chrome-linux -type f -perm /100 -exec chmod 775 {} \; find /opt/chrome-linux -type f ! -perm /100 -exec chmod 664 {} \; chgrp -R opt /opt/chrome-linux rm -rf ${TMPDIR} echo "New Chromium installed!"
Enjoy!
8 Nov 2010: Updated to match new URLs being used