CentOS 7 how to install the Chrome browser

  • 2020-12-21 18:17:59
  • OfStack

This article introduces the CentOS 7 installation method of Chrome browser, to share with you, specific as follows:

Configure yum download source:

In the directory/etc yum. repos. d new files under/google - chrome. repo


[root@localhost ~]#  cd /ect/yum.repos.d/
[root@localhost yum.repos.d]#  vim google-chrome.repo

Edit google-ES19en. repo, as follows, save and exit (wq)


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

Install google chrome browser:


[root@localhost yum.repos.d]# yum -y install google-chrome-stable

PS: Google official source may not be available in China, resulting in installation failure or failure to update in China. You can add the following parameters to install:


[root@localhost yum.repos.d]# yum -y install google-chrome-stable --nogpgcheck

In this way, google chrome can be installed successfully.


Related articles: