linunx yum 安装 chrome chromedriver

在 CentOS 7 系统下的 /etc/yum.repos.d/ 文件夹中创建 google-chrome.repo 文件:

sudo vi /etc/yum.repos.d/google-chrome.repo

添加如下 Yum 软件源信息:

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

查看谷歌 Chrome 浏览器的软件包信息

sudo yum info google-chrome-stable可安装的软件包名称 :google-chrome-stable架构 :x86_64版本 :67.0.3396.87发布 :1大小 :50 M源 :google-chrome/x86_64简介 : Google Chrome网址 :https://chrome.google.com/协议 : Multiple, see https://chrome.google.com/描述 : The web browser from Google: : Google Chrome is a browser that combines a minimal design with: sophisticated technology to make the web faster, safer, and easier.

在 CentOS 7 系统中安装 Chrome 浏览器稳定版

sudo yum install google-chrome-stable

查看安装的版本(chromedriver需要和大版本一致)

$ google-chrome --version$ Google Chrome 107.0.5304.87

精彩链接

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。