From Mageia wiki
Jump to: navigation, search


Drakconf multiflag.png
Other languages
Deutsch ; English ; français ;
Synopsis:
How to install Google's Chrome web browser in Mageia Linux.
Please note: this is the official Google release and is referrred to as google-chrome-stable (not to be confused with chromium-browser).


Google-chrome.png


Introduction

Google Chrome is a cross-platform web browser developed by Google.

This page describes how to install Google Chrome, referred to as google-chrome-stable, in Mageia Linux.

Today, for Linux: Google only provides google-chrome-stable for 64-bit systems (no longer 32-bit systems).


WARNING:

As of Saturday 17th June 2023, Google's Linux package Signing Key "gpg-pubkey-7fac5991-4615767f Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com> public key" appears to be obsolete. Two observations:
Observation-1: installing using: /bin/sudo urpmi google-chrome-stable and updating with: /bin/sudo urpmi --auto-update both result in a "package has bad signature" error message like this:

The following package has bad signature:                                                                                                                                                                                                                                                            
/var/cache/urpmi/rpms/google-chrome-stable-114.0.5735.198-1.x86_64.rpm: Invalid Key ID (OK (RSA/SHA512, Sat 24 Jun 2023 04:03:13 BST, Key ID 4eb27db2a3b88b8b))
Do you want to continue installation ? (y/N) n

Observation-2: Google's own "Linux Software Repositories" page states that "Linux Package Signing Key" with fingerprint ending "7FAC 5991" is "Obsolete". Reference: https://www.google.com/linuxrepositories/

This means that you will not get a properly signed latest google-chrome-stable when you attempt to install or update it using urpmi.

This issue has been reported as a bug in the chromium bug reporting system: https://bugs.chromium.org/p/chromium/issues/detail?id=1456806

A manual work-around for this "package has bad signature" is provided in: Appendix-3: Manual install latest release (below).


Benefits

  1. google-chrome-stable has some features that are not available in chromium-browser (which is available as a package to install in Mageia).
    The differences between chromium-bowser and google-chrome-stable are summarized in Wikipedia.
    One key difference is that, on Mageia, there is a 32-bit version of chromium-browser available while Google no longer provides a 32-bit google-chrome-stable.
  2. It is more secure to verify the installation image from Google with Google's Linux signing key.
  3. Adding Google's URPMI repository for google-chrome-stable means that new updates will be installed when Mageia's system update (urpmi --auto-update) is run.


Overview

  • Install and configure sudo (if not already installed)
  • Configure the Google URPMI repository in Mageia
  • Download and import Google's Linux Package signing key
  • Verify key
  • Add Google's key to Mageia's URPMI configuration
  • Install google-chrome-stable


Preparation

Verify using 64 bit system

Google chrome is no longer available for 32-bit Linux systems.

To check:

echo Google-chrome-stable $([ "x86_64" = $(uname -m) ] && echo "on 64-bit is "|| echo "on non-64-bit is *not*" ) available


Example on 64-bit:

$ echo Google-chrome-stable $([ "x86_64" = $(uname -m) ] && echo "on 64-bit is "|| echo "on non-64-bit is *not*" ) available
Google-chrome-stable on 64-bit is available

Example on 32-bit:

$ echo Google-chrome-stable $([ "x86_64" = $(uname -m) ] && echo "on 64-bit is "|| echo "on non-64-bit is *not*" ) available
Google-chrome-stable on non-64-bit is *not* available


Install pre-requisites

sudo

This page shows examples using the sudo command.

Check sudo is installed and configured with this guide: Configuring sudo


Add Google's URPMI source for google-chrome-stable

Adding Google's URPMI source for google-chrome-stable will enable any pending updates to be automatically fetched and installed when Mageia is updated (e.g. with: urpmi --auto-update).

Run the following command in a terminal:

$ /bin/sudo urpmi.addmedia --update google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64/

Example:

$ /bin/sudo urpmi.addmedia --update google-chrome http://dl.google.com/linux/chrome/rpm/stable/x86_64/
adding medium "google-chrome" http://dl.google.com/linux/chrome/rpm/stable/x86_64/media_info/synthesis.hdlist.cz


Add key for Google's Linux rpms

Run the following command in a terminal:

/bin/sudo rpm -import https://dl-ssl.google.com/linux/linux_signing_key.pub


Verify key

To verify the key, execute this command in a terminal:

rpm -qi gpg-pubkey-7fac5991-*

Example:

$ rpm -qi gpg-pubkey-7fac5991-*
Name : gpg-pubkey Version : 7fac5991 Release : 4615767f Architecture: (none) Install Date: Fri 08 Jan 2021 18:04:01 GMT Group : Public Keys Size : 0 License : pubkey Signature : (none) Source RPM : (none) Build Date : Thu 05 Apr 2007 23:21:51 BST Build Host : localhost Relocations : (not relocatable) Packager : Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com> Summary : gpg(Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>) Description : -----BEGIN PGP PUBLIC KEY BLOCK----- Version: rpm-4.14.3 (NSS-3) mQGiBEXwb0YRBADQva2NLpYXxgjNkbuP0LnPoEXruGmvi3XMIxjEUFuGNCP4Rj/a kv2E5VixBP1vcQFDRJ+p1puh8NU0XERlhpyZrVMzzS/RdWdyXf7E5S8oqNXsoD1z fvmI+i9b2EhHAA19Kgw7ifV8vMa4tkwslEmcTiwiw8lyUl28Wh4Et8SxzwCggDcA feGqtn3PP5YAdD0km4S4XeMEAJjlrqPoPv2Gf//tfznY2UyS9PUqFCPLHgFLe80u QhI2U5jt6jUKN4fHauvR6z3seSAsh1YyzyZCKxJFEKXCCqnrFSoh4WSJsbFNc4PN b0V0SqiTCkWADZyLT5wll8sWuQ5ylTf3z1ENoHf+G3um3/wk/+xmEHvj9HCTBEXP 78X0A/0Tqlhc2RBnEf+AqxWvM8sk8LzJI/XGjwBvKfXe+l3rnSR2kEAvGzj5Sg0X 4XmfTg4Jl8BNjWyvm2Wmjfet41LPmYJKsux3g0b8yzQxeOA4pQKKAU3Z4+rgzGmf HdwCG5MNT2A5XxD/eDd+L4fRx0HbFkIQoAi1J3YWQSiTk15fw7RMR29vZ2xlLCBJ bmMuIExpbnV4IFBhY2thZ2UgU2lnbmluZyBLZXkgPGxpbnV4LXBhY2thZ2VzLWtl eW1hc3RlckBnb29nbGUuY29tPohjBBMRAgAjAhsDBgsJCAcDAgQVAggDBBYCAwEC HgECF4AFAkYVdn8CGQEACgkQoECDD3+sWZHKSgCfdq3HtNYJLv+XZleb6HN4zOcF AJEAniSFbuv8V5FSHxeRimHx25671az+uQINBEXwb0sQCACuA8HT2nr+FM5y/kzI A51ZcC46KFtIDgjQJ31Q3OrkYP8LbxOpKMRIzvOZrsjOlFmDVqitiVc7qj3lYp6U rgNVaFv6Qu4bo2/ctjNHDDBdv6nufmusJUWq/9TwieepM/cwnXd+HMxu1XBKRVk9 XyAZ9SvfcW4EtxVgysI+XlptKFa5JCqFM3qJllVohMmr7lMwO8+sxTWTXqxsptJo pZeKz+UBEEqPyw7CUIVYGC9ENEtIMFvAvPqnhj1GS96REMpry+5s9WKuLEaclWpd K3krttbDlY1NaeQUCRvBYZ8iAG9YSLHUHMTuI2oea07Rh4dtIAqPwAX8xn36JAYG 2vgLAAMFB/wKqaycjWAZwIe98Yt0qHsdkpmIbarD9fGiA6kfkK/UxjL/k7tmS4Vm CljrrDZkPSQ/19mpdRcGXtb0NI9+nyM5trweTvtPw+HPkDiJlTaiCcx+izg79Fj9 KcofuNb3lPdXZb9tzf5oDnmm/B+4vkeTuEZJ//IFty8cmvCpzvY+DAz1Vo9rA+Zn cpWY1n6z6oSS9AsyT/IFlWWBZZ17SpMHu+h4Bxy62+AbPHKGSujEGQhWq8ZRoJAT G0KSObnmZ7FwFWu1e9XFoUCt0bSjiJWTIyaObMrWu/LvJ3e9I87HseSJStfw6fki 5og9qFEkMrIrBCp3QGuQWBq/rTdMuwNFiEkEGBECAAkFAkXwb0sCGwwACgkQoECD D3+sWZF/WACfeNAu1/1hwZtUo1bR+MWiCjpvHtwAnA1R3IHqFLQ2X3xJ40XPuAyY /FJG =Quqp -----END PGP PUBLIC KEY BLOCK-----


Add Google key to Mageia install configuration


Start Mageia Control Center

Select the Software Mangement in the left hand margin then click on Configure media sources for install and update (on the right hand side).

2020 02 15 Mageia Control Center Software Management a.png
^ click on: Configure media sources for install and update.


In Configure media sources click on Options and select Manage keys

2020 02 15 Mageia Control Center Software magagement d.png
^ click on: Options and select Manage keys.


Manage keys: scroll down to google chrome and click add

2020 02 15 Mageia Control Center Software Management h.png
^ In the Manage keys for digital signatures window scroll down and select google chrome and click on Add.

^ In the Add a key (as super user) window select 7fac5991 (Google Inc., Package signing key and click OK.
^ Also click OK in the Manage keys for digital signatures window and all the way out of here.


Install google-chrome-stable

To install google-chrome, execute this command in a terminal:

/bin/sudo urpmi google-chrome-stable # Install Chrome

Example:

$ /bin/sudo urpmi google-chrome-stable
[sudo] password for user: http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-80.0.3987.149-1.x86_64.rpm installing google-chrome-stable-80.0.3987.149-1.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ####################################################################### 1/1: google-chrome-stable ####################################################################### Redirecting to /bin/systemctl start atd.service


Running google-chrome-stable

For example, using:

/usr/bin/google-chrome-stable # run Chrome

It can also be started from the desktop environment (DE). For example, in MATE desktop: Applications => Internet => More => Google Chrome.

By right-clicking on the Mate DE menu display of Google Chrome a launcher icon can be added to both the MATE panel and desktop.


Updating google-chrome-stable

If google-chrome-stable has been installed as described in this wiki page then any pending updates for google-chrome-stable will automatically be installed when a Mageia system update is done.

For example, using:

/bin/sudo urpmi --auto-update # Install any pending Mageia system updates


Note that the update can be done if you are currently running google-chrome-stable. In order to switch the currently running (eg pre-update version) then click on the three vertical dots (at top right) and select Help then select About Google Chrome and click left mouse button. If the Mageia system update has completed and a new version of google-chrome-stable been installed then the About Google Chrome screen will offer a Relaunch option. Click on Relaunch to restart google-chrome-stable with the same tabs and pages you already have open.

Example:

2022 12 04 About Google Chrome Relaunch.png
^ About Google Chrome screen offers a Relaunch option


It has been observed that there are quite often security updates for google-chrome-stable. This is probably because it is a very popular web browser (reported as 2.65 billion users) and therefore a high value target for adversaries who want to exploit any vulnerabilities.

In 2022 alone up to November, some 8 critical updates addressing zero-day security vulnerabilities have been provided by Google.

If you do choose to use google-chrome-stable then it is wise to keep up-to-date with news and run regular Mageia system updates.


Appendix-1: References and links


# comment link
1 Google's notes about Linux Software Repositories (with keys detail) https://www.google.com/linuxrepositories/
2 Differences between chromium-bowser and google-chrome-stable https://en.wikipedia.org/wiki/Chromium_(web_browser)#Differences_from_Google_Chrome
3 Most asked questions about Chromium and Chrome in Mageia Forums https://forums.mageia.org/en/viewtopic.php?f=36&t=2053&p=15047&hilit=Chrome+questions#p15047
4 Google Chrome release updates from the Chrome team. Chrome releases
5 News about Google Chrome Google Chrome blog
6 Research or file a Chrome bug Chrome bugs
7 Community help Google Chrome community help


Appendix-2: What happens without Google's signing key?

It is still possible to install google-chrome-stable but the install image is not verified using the key.

It is more secure to verify the install image with Google's key.

Without the key, an install (or update) would typically pause the install and prompt for a Y/N response and display a warning message like:

WARNING: The following package has bad signature:

/var/cache/urpmi/rpms/google-chrome-stable-80.0.3987.106-1.x86_64.rpm: Medium without key (OK (DSA/SHA1, Thu 13 Feb 2020 04:32:35 GMT, Key ID a040830f7fac5991))
Do you want to continue installation ? (y/N)


Also, without the key, you could be installing a bogus copy of google-chrome-stable which may have been modified outside of Google.

Note that you can review the imported keys with:

rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'

Example:

[user@localhost ~]$ rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
gpg-pubkey-80420f66-5d0d4576	Mageia Packages <packages@mageia.org> public key
gpg-pubkey-7fac5991-4615767f	Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com> public key
gpg-pubkey-d38b4796-570c8cd3	Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com> public key

In this example (above) the key gpg-pubkey-7fac5991-4615767f as of 17 June 2023 is labelled as obsolete by Google.


2023 06 29 Google Linux signing key obsolete 7FAC 5991 edit1.png
^ Google's Linux Package Key labelled "Obsolete" on https://www.google.com/linuxrepositories/


Appendix-3: Manual install latest release

The following method may be needed if the upstream Google download directory has not updated their media_info/[hdlist.cz|MD5SUM|synthesis.hdlist.cz] files for the most recent release.

This may become evident when you do not get the latest version when you run: /bin/sudo urpmi --auto-update. Also, you may see a red boxed warning at the top right in Google Chrome that the current version is out of date.

It may also be needed if you are seeing the "package has bad signature" error message when attempting to install or update.

A work-around is to install the google-chrome-stable RPM as follows:


step-a: find version number of currently installed google-chrome-stable

rpm -q google-chrome-stable

Example:

[use@localhost ~]$ rpm -q google-chrome-stable
google-chrome-stable-114.0.5735.198-1


step-b: compare installed version number with latest available version

Look for the latest google-chrome-stable version number for Linux.

Hint, use this search: What is the latest official version of Google Chrome for Linux?


The above google search should provide a table like this:

platform version release date
Chrome on Windows 115.0.5790.98 2023-07-18
Chrome on macOS 115.0.5790.98 2023-07-18
Chrome on Linux 115.0.5790.98 2023-07-18
Chrome on Android 114.0.5735.196 2023-06-27
Chrome on iOS 115.0.5790.130 2023-07-18

In this example (from 2023_07_19), we see the latest Linux version is: 115.0.5790.98 released on 2023-07-18.


step-c: if your installed version is older than the latest version then

step-c-1: remove current installed version:

/bin/sudo urpme google-chrome-stable


Example:

[mpb@z600-mageia8 ~]$ /bin/sudo urpme google-chrome-stable
removing google-chrome-stable-114.0.5735.198-1
removing package google-chrome-stable-114.0.5735.198-1
      1/1: removing google-chrome-stable-114.0.5735.198-1
                                 ##########################################################


step-c-2: construct URL for downloading google-chrome-stable RPM

The URL will have the form: <base_part><version_number>"-1.x86_64.rpm".

The <base_part> is:

    http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-

So, for the example shown here, the URL needed is:

                                                                             vvvvvvvvvvvvv
    http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm
                                                                             ^^^^^^^^^^^^^


step-c-3: download the latest version from Google

cd ~/Downloads
wget http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm


Example showing download of version 115.0.5790.98 released on 2023-07-18:

[user@localhost ~]$ cd ~/Downloads

[user@localhost Downloads]$ wget http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm
--2023-07-19 17:00:59--  http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm
Resolving dl.google.com (dl.google.com)... 142.250.179.238, 2a00:1450:4009:81d::200e
Connecting to dl.google.com (dl.google.com)|142.250.179.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 100868368 (96M) [application/x-rpm]
Saving to: ‘google-chrome-stable-115.0.5790.98-1.x86_64.rpm’

google-chrome-stable-115.0.5790.98-1.x86_64.rpm                           100%[=======================>]  96.20M  8.45MB/s    in 11s     

2023-07-19 17:01:10 (8.56 MB/s) - ‘google-chrome-stable-115.0.5790.98-1.x86_64.rpm’ saved [100868368/100868368]


step-c-4: verify the downloaded google-chrome-stable RPM

rpm --checksig -v ~/Downloads/google-chrome-stable-115.0.5790.98-1.x86_64.rpm

Example:

[user@localhost ~]$ rpm --checksig -v ~/Downloads/google-chrome-stable-115.0.5790.98-1.x86_64.rpm
/home/mpb/Downloads/google-chrome-stable-115.0.5790.98-1.x86_64.rpm:
    Header V4 RSA/SHA512 Signature, key ID a3b88b8b: OK
    Header SHA256 digest: OK
    Header SHA1 digest: OK
    Payload SHA256 digest: OK
    V4 RSA/SHA512 Signature, key ID a3b88b8b: OK
    MD5 digest: OK


step-c-5: if verified OK then install downloaded google-chrome-stable RPM:

/bin/sudo urpmi ~/Downloads/google-chrome-stable-115.0.5790.98-1.x86_64.rpm Example:

[user@localhost ~]$ /bin/sudo urpmi ~/Downloads/google-chrome-stable-115.0.5790.98-1.x86_64.rpm


installing google-chrome-stable-115.0.5790.98-1.x86_64.rpm from /home/mpb/Downloads
Preparing...                     ##################################################################
      1/1: google-chrome-stable  ##################################################################


step-c-6: confirm newly installed version of google-chrome-stable

rpm -q google-chrome-stable

Example:

[user@localhost ~]$ rpm -q google-chrome-stable
google-chrome-stable-115.0.5790.98-1


Alternatively, direct install from Google

This skips the rpm --checksig step and so is not as secure as the method shown above which includes rpm --checksig

/bin/sudo urpmi http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm

Note, the following example shows installing version 115.0.5790.98 from 2023-07-18 (replacing the previously installed version 114.0.5735.198):

[user@localhost ~]$ /bin/sudo urpmi http://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-115.0.5790.98-1.x86_64.rpm
[sudo] password for user: 


installing google-chrome-stable-115.0.5790.98-1.x86_64.rpm from /var/cache/urpmi/partial
Preparing...                     ##################################################################################################
      1/1: google-chrome-stable  ##################################################################################################
      1/1: removing google-chrome-stable-114.0.5735.198-1.x86_64
                                 ##################################################################################################


Return to top