LoginSignup
8
7

More than 5 years have passed since last update.

CentOS 6.XにGoogle Chromeをインストールする方法

Last updated at Posted at 2018-09-28

動機

  • CentOS 6系サーバでSelenium Web Driverを使ったブラウザ操作自動化をしたい。
  • ChromeDriverを使うPGを書いていたので、サーバにもインストールが必要。

手順

  • yumレポジトリを追加する

    cat << EOS > /etc/yum.repos.d/google-chrome.repo
    [google-chrome]
    name=google-chrome
    baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
    enabled=0
    gpgcheck=1
    gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
    EOS
    
  • インストール

    yum -y install google-chrome-stable --enablerepo=google-chrome
    

確認

  • インストール先、バージョンを確認

    which google-chrome
    # responce: /usr/bin/google-chrome
    
    google-chrome --version
    # responce: Google Chrome 69.0.3497.100
    
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7