首页 > 其他 > 详细

OS: chrome installed for redhat8.4

时间:2021-06-08 20:18:07      阅读:19      评论:0      收藏:0      [点我收藏+]

install chrome for redhat8.4 documents

 

 

 

 

 

 

0、依赖库查询:https://pkgs.org/ 

 

 

 

 

1. reference: https://m.linuxidc.com/Linux/2019-09/160524.htm

 

 

 

 

2. download "google-chrome", web = https://www.google.cn/chrome/

2.1 wget https://www.google.cn/chrome/

 

 

 

 

3. donwnload folder "chrome_for_redhat84" , 4 files of rpm.

3.1 google-chrome-stable_current_x86_64.rpm

3.2 liberation-fonts-2.00.3-7.el8.noarch.rpm # you can do not download this file, if you have repo ‘appstream‘

3.3 mesa-vulkan-drivers-20.1.4-1.el8.x86_64.rpm # you can do not download this file, if you have repo ‘appstream‘

3.4 vulkan-loader-1.2.148.0-1.el8.x86_64.rpm

 

 

 

 

4. install chrome.

4.1 cd "chrome_for_redhat84" folder

4.2 install liberation-fonts: [root@redhatos Downloads]# dnf localinstall --nogpgcheck liberation-fonts-2.00.3-7.el8.noarch.rpm

4.3 install google-chrome: [root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64.rpm

4.4 install ‘google-chrome‘ steps.

 

[root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64
Last metadata expiration check: 0:12:01 ago on Thu 27 May 2021 09:31:34 PM CST.
Not a valid rpm file path: google-chrome-stable-91.0.4472.77-1.x86_64
Error: Nothing to do.
[root@redhatos Downloads]# dnf localinstall google-chrome-stable-91.0.4472.77-1.x86_64.rpm
Last metadata expiration check: 0:12:18 ago on Thu 27 May 2021 09:31:34 PM CST.
Can not load RPM file: google-chrome-stable-91.0.4472.77-1.x86_64.rpm.
Could not open: google-chrome-stable-91.0.4472.77-1.x86_64.rpm
[root@redhatos Downloads]# dnf localinstall google-chrome-stable_current_x86_64.rpm
Last metadata expiration check: 0:12:51 ago on Thu 27 May 2021 09:31:34 PM CST.
Dependencies resolved.
==================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================
Installing:
google-chrome-stable x86_64 91.0.4472.77-1 @commandline 79 M
Installing dependencies:
mesa-vulkan-drivers x86_64 20.3.3-2.el8 local-appstream 5.4 M
vulkan-loader x86_64 1.2.162.0-1.el8 local-appstream 118 k

Transaction Summary
==================================================================================================================================================
Install 3 Packages

Total size: 85 M
Installed size: 274 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : vulkan-loader-1.2.162.0-1.el8.x86_64 1/3
Installing : mesa-vulkan-drivers-20.3.3-2.el8.x86_64 2/3
Running scriptlet: google-chrome-stable-91.0.4472.77-1.x86_64 3/3
Installing : google-chrome-stable-91.0.4472.77-1.x86_64 3/3
Running scriptlet: google-chrome-stable-91.0.4472.77-1.x86_64 3/3
Verifying : mesa-vulkan-drivers-20.3.3-2.el8.x86_64 1/3
Verifying : vulkan-loader-1.2.162.0-1.el8.x86_64 2/3
Verifying : google-chrome-stable-91.0.4472.77-1.x86_64 3/3
Installed products updated.

Installed:
google-chrome-stable-91.0.4472.77-1.x86_64 mesa-vulkan-drivers-20.3.3-2.el8.x86_64 vulkan-loader-1.2.162.0-1.el8.x86_64

Complete!
[root@redhatos Downloads]#

 

 

 

 

5. open chrome in ‘terminal‘, and fix bug ‘no-sandbox‘   

5.1 [root@redhatos Downloads]# google-chrome --no-sandbox

 

 


====== reference

1)安装浏览器

# apt-get install gonme

# apt-get update

# apt-get install google-chrome-stable

 

2)启动Chrome浏览器

# google-chrome

这时会报错:
[31560:31560:0207/085601.085852:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See

# google-chrome --no-sandbox //之后重启系统




3)问题:no-sandbox

# whereis google-chrome
 google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz
# vim /usr/bin/google-chrome

 

将 exec -a "$0" "$HERE/chrome" "$@" 改为

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox

以后只要 #google-chrome 就可以打开Chrome了

虽然也会弹出一堆错误,但是终于成功打开了!!

 

 

 

 

6. finished installation ‘google chrome‘ in redhat8.4, enjoyed !

 

 

 

 

OS: chrome installed for redhat8.4

原文:https://www.cnblogs.com/lnlidawei/p/14863203.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!