Google Chrome installation RHEL 8

Latest response

I have downloaded and trying to install Google Chrome in RHEL 8. It is throughing below error. Tried installing google gpg key, and rpm -vv -- import gpg_file_google but that is not working [same error]. How to overcome this error? As work arround I have unpacked GoogleChrome rpm file to my home folder and running it from cli {this is temp solution only}

(base) [anowarsayed3@sayed-redhat Downloads]$ sudo yum localinstall google-chrome-stable_current_x86_64.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 0:28:30 ago on Tuesday 10 September 2019 10:51:16 PM IST.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                                  Arch                                       Version                                                Repository                                        Size
===================================================================================================================================================================================================================
Installing:
 google-chrome-stable                                     x86_64                                     76.0.3809.132-1                                        @commandline                                      57 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package

Total size: 57 M
Installed size: 201 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  package google-chrome-stable-76.0.3809.132-1.x86_64 does not verify: no digest

Error Summary
-------------

(base) [anowarsayed3@sayed-redhat Downloads]$ 

Responses

Hi Sayed,

Install Google Chrome in another way ... I recommend to enable the EPEL and RPM Fusion repositories beforehand.
Create a new file in /etc/yum.repos.d - sudo vi /etc/yum.repos.d/google-chrome.repo and add these lines :

[google-chrome]
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub  

Then update the software sources and install Google Chrome :

sudo dnf upgrade
sudo dnf install google-chrome-stable

It might be possible that needed dependencies provided by EPEL or RPM Fusion are not available though.
Both repositories are currently not fully populated, because they are still considered under construction :)

Regards,
Christian

Thank you. It worked.

You're welcome, Sayed ! :)

When I am trying to update Google Chrome in RHEL 8, it is encountering following error:

(base) [anowarsayed3@sayed-redhat ~]$ sudo dnf update
[sudo] password for anowarsayed3: 
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                     2.7 kB/s | 4.9 kB     00:01    
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                     307 kB/s | 1.5 MB     00:05    
google-chrome                                                                                                                                                                      1.2 kB/s | 1.3 kB     00:01    
google-chrome                                                                                                                                                                      542  B/s | 3.4 kB     00:06    
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                           3.0 kB/s | 4.5 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                           2.6 kB/s | 4.5 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                           986 kB/s | 9.2 MB     00:09    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                              2.5 kB/s | 4.0 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                              1.6 MB/s | 7.3 MB     00:04    
RPM Fusion for EL 8 - Free - Updates                                                                                                                                               952  B/s | 3.0 kB     00:03    
RPM Fusion for EL 8 - Free - Updates                                                                                                                                                14 kB/s |  74 kB     00:05    
RPM Fusion for EL 8 - Nonfree - Updates                                                                                                                                            947  B/s | 3.0 kB     00:03    
RPM Fusion for EL 8 - Nonfree - Updates                                                                                                                                            1.6 kB/s |  15 kB     00:09    
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                              Arch                                   Version                                           Repository                                                     Size
===================================================================================================================================================================================================================
Upgrading:
 google-chrome-stable                                 x86_64                                 77.0.3865.90-1                                    google-chrome                                                  59 M
 patch                                                x86_64                                 2.7.6-9.el8_0                                     rhel-8-for-x86_64-baseos-rpms                                 138 k

Transaction Summary
===================================================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 59 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): patch-2.7.6-9.el8_0.x86_64.rpm                                                                                                                                               69 kB/s | 138 kB     00:01    
(2/2): google-chrome-stable-77.0.3865.90-1.x86_64.rpm                                                                                                                              6.9 MB/s |  59 MB     00:08    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                              6.9 MB/s |  59 MB     00:08     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction check error:
  package google-chrome-stable-77.0.3865.90-1.x86_64 does not verify: no digest

Error Summary
-------------

Hi Sayed,

No idea what went wrong there ... as a workaround I suggest to remove and reinstall the package - hope it works. :)

sudo dnf remove google-chrome-stable
sudo dnf install google-chrome-stable

Regards,
Christian

I removed Google chrome. Can't install anymore. Tried removing the repo. Not working. I guess I need to wait till Chromium available in EPEL 8.

Well Sayed, I think those kind of problems may disappear with the first point release of RHEL 8 ... :)

Regards,
Christian

Hi Sayed,

To remove the Chrome repo, execute : sudo rm /etc/yum.repos.d/google-chrome.repo
Then update the sources - afterwards you can try to repeat the initial installation. :) - execute :

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo dnf upgrade

Regards,
Christian