I'd like to do something similar to:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

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:

wget https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
open ~/Downloads/googlechrome.dmg
sudo cp -r /Volumes/Google\ Chrome/Google\ Chrome.app /Applications/

I found this after mucking around with the page source:


  • 2
    At which point they could open /path/to/googlechrome.dmg and cp /volume/googlechrome/Google\ Chrome.app /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 https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg > $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.

  • 2
    +1 for the mention of brew-cask which seems very useful for improving Homebrew. – dgh Jun 3 '13 at 1:05

brew cask install google-chrome also works if you have homebrew.

(It basically does the same thing as your final solution)

edit: homebrew has a new syntax for casks:

brew install --cask google-chrome

I was interested in being able to download any of their branches. If you look at the https://www.google.com/chrome/assets/common/js/chrome-installer.min.js 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(a.sb)a="/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],h=f.ki;if(f.Vj.test(b)){a=h;break}}a=pa("/chrome/mac/stable/%s/googlechrome.dmg",a)}else a=Xn(a)?An[a.Bj+(a.sb?"-b":a.Sa?"-d":"")]:"/update2/installers/ChromeSetup.exe";return a}e.Rr=function(a){this.sm=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 https://dl.google.com/chrome/


The way to install Google Chrome will be to download & install it manually through click and install. Download appropriate Google Chrome Deb package. Then sudo dpkg -i . ... Add the key. Set Repository. Update package. Install chrome.


Because at the first install you don't have wget or brew, you can use curl, this works for me:

curl https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg --output googlechrome.dmg
New contributor
dorancemc is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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