Saturday, 27 July 2013

Install Google Chrome in Ubuntu using Google's repositories

This is mostly a note to myself to save a minute of searching every time I need it:
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install -y google-chrome-stable

As far as I know, this works in (at least):
Ubuntu 12.04 Precise
Ubuntu 12.10 Quantal
Ubuntu 13.04 Raring
Ubuntu 13.10 Saucy
Ubuntu 14.04 Trusty
Ubuntu 15.10 Wily
Ubuntu 16.04 Xenial