How to Install Chrome on OpenSUSE

One of the first things I need to do after a new OpenSuse installis to add Google Chrome. In this tutorial, I will show you how to install Google Chrome on OpenSUSE Tumbleweed, but this will also work on leap versions 42 & 43.

Add Google Chrome Repo to OpenSuse

First we need to add the repo and GPG keys. Run the following at the terminal prompt.

wget https://dl.google.com/linux/linux_signing_key.pub; \
sudo rpm --import linux_signing_key.pub; \
sudo zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 
Google-Chrome

The above commands break down like so:

1) First we want to download the repo signing key

wget https://dl.google.com/linux/linux_signing_key.pub

2) Then we went to install the key so it can be used by zypper

sudo rpm --inport linux_signing_key.pub

3) Finally, we want to add the actual repo to the zypper repo list. ar stands for add-repoistory.

sudo zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 
Google-Chrome

Once you have run that you should see outut like so

wget https://dl.google.com/linux/linux_signing_key.pub;
--2018-03-04 12:04:42--  https://dl.google.com/linux/linux_signing_key.pub
Resolving dl.google.com (dl.google.com)... 216.58.206.142, 
2a00:1450:4009:811::200e
Connecting to dl.google.com (dl.google.com)|216.58.206.142|:443... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 8038 (7.8K) [application/octet-stream]
Saving to: ‘linux_signing_key.pub.3’

linux_signing_key.p 100%[===================>]   7.85K  --.-KB/s    in 
0.001s  

2018-03-04 12:04:42 (9.03 MB/s) - ‘linux_signing_key.pub.3’ saved 
[8038/8038]

[email protected]:~> sudo rpm --import linux_signing_key.pub;sudo zypper ar 
http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome
[sudo] password for root: 
Adding repository 'Google-Chrome' 
........................................[done]
Repository 'Google-Chrome' successfully added

URI         : http://dl.google.com/linux/chrome/rpm/stable/x86_64
Enabled     : Yes                                                
GPG Check   : Yes                                                
Autorefresh : No                                                 
Priority    : 99 (default priority)  

Now we simply need to refresh the repo list (think apt-get update) by running:

sudo zypper ref

Installing Google Chrome itself

Now we can install Google Chrome using the following command. The zypper shortcut for install is in.

sudo zypper in google-chrome-stable

This command will install the stable version of Google Chrome. If you want beta or unstable version, use the following commands.

sudo zypper in google-chrome-beta

sudo zypper in google-chrome-unstable

One last point. You can install all three versions of Chrome side-by-side on the same system.