Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to do something similar to:


except download the OS X version (from ? URL) and install it from the command line. The corresponding instructions for installing Google Chrome on Ubuntu can be found here. I've searched high and low and Google does not seem to make the link available anywhere.

I'm trying to write a script to automate installation of my standard applications for OS X. I use a set of scripts like this already to set up my Ubuntu box. Specifically, I can't seem to find the URL for the Google Chrome OS X 64 bit direct download.

Edit, final solution:

open ~/Downloads/googlechrome.dmg
sudo cp -r /Volumes/Google\ Chrome/Google\ /Applications/
share|improve this question
up vote 7 down vote accepted

I found this after mucking around with the page source:

share|improve this answer
At which point they could open /path/to/googlechrome.dmg and cp /volume/googlechrome/Google\ /Applications/ – demure Jun 2 '13 at 3:32

I have used a script like this to copy applications from disk images:

mkdir -p $temp/mount
curl > $temp/1.dmg
yes | hdiutil attach -noverify -nobrowse -mountpoint $temp/mount $temp/1.dmg
cp -r $temp/mount/*.app /Applications
hdiutil detach $temp/mount
rm -r $temp
  • Without -mountpoint the dmg is mounted to a directory like /Volume/Google\ Chrome/.
  • -nobrowse doesn't show the volume in Finder.
  • If the dmg has a license agreement, yes | skips it.
  • cp preserves extended attributes (which includes resource forks) and ACLs by default. As far as I know, ditto is no longer needed for copying application bundles.

Or using brew-cask:

brew install brew-cask
brew cask install google-chrome

brew-cask installs applications to /opt/homebrew-cask/Caskroom/ and creates aliases to ~/Applications/ by default.

share|improve this answer
+1 for the mention of brew-cask which seems very useful for improving Homebrew. – dghubble Jun 3 '13 at 1:05

I was interested in being able to download any of their branches. If you look at the file, you'll see the links you need. Here is an excerpt.

Pn(a,"win64")?"/update2/installers/ChromeStandaloneSetup64.exe":"/update2/installers/ChromeStandaloneSetup.exe":"/update2/installers/ChromeSetup.exe";else if(Wn(a))if("/chrome/mac/beta/GoogleChrome.dmg";else if(a.ta)a="/release2/q/canary/googlechrome.dmg";else if(a.Sa)a="/chrome/mac/dev/GoogleChrome.dmg";else{a="GGRO";var b=new Y(location.href),b=qk(b,"brand");if(b=b.length&&b[0])for(var c=0,d=Gn.length;c<d;c++){var f=Gn[c],;if(f.Vj.test(b)){a=h;break}}a=pa("/chrome/mac/stable/%s/googlechrome.dmg",a)}else a=Xn(a)?An[a.Bj+("-b":a.Sa?"-d":"")]:"/update2/installers/ChromeSetup.exe";return a}e.Rr=function(a){};

As you can see from doing a simple search on the minified code above, you'll find the last half of the links that should be concatenated with

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.