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 ! :)