centos安装无界面chrome浏览器

Aveiro 2024年04月03日 ⋅ 1020 阅读

下载chrome离线安装包

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

按照相关依赖

yum install libX11 libXcursor libXdamage libXext libXcomposite libXi libXrandr gtk3 libappindicator-gtk3 xdg-utils libXScrnSaver liberation-fonts

安装chrome

rpm -ivh google-chrome-stable_current_x86_64.rpm

如果查询如下错误

[root@iZcp91yhpknileZ selenium]# rpm -ivh google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 9b30acf2: NOKEY
error: Failed dependencies:
	libvulkan.so.1()(64bit) is needed by google-chrome-stable-123.0.6312.105-1.x86_64

还需安装vulkan依赖

sudo yum -y install vulkan-1.1.97.0-1.el7.x86_64

再次执行安装

root@iZcp91yhpknileZ selenium]# sudo rpm -ivh google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 9b30acf2: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:google-chrome-stable-123.0.6312.1################################# [100%]

查看版本

[root@iZcp91yhpknileZ selenium]# google-chrome --version
Google Chrome 123.0.6312.105

 

 


全部评论: 0

    我有话说: