天天看點

Centos 8 安裝google浏覽器(yum)

1. 下載下傳google浏覽器安裝包,下載下傳位址

   [root@localhost install]# ls

   google-chrome-stable_current_x86_64.rpm

2. 安裝

   [root@localhost install]# sudo yum localinstall google-chrome-stable_current_x86_64.rpm

3. 安裝完成之後,還啟不動google浏覽器, 可直接修改配置檔案, 加上 --no-sandbox

   3.1 檔案位址 (修改檔案方法)

   [root@localhost ~]# ls /usr/share/applications/google-chrome.desktop

   /usr/share/applications/google-chrome.desktop

   [root@localhost ~]# vi /usr/share/applications/google-chrome.desktop

  3.2 能裝google浏覽器的基本上都是有圖形界面的, 可以直接打開檔案,  在指令後面加上 --no-sandbox

另外一種安裝的方法 yum 安裝

1. 建立yum源檔案

[root@test ~]# cd /etc/yum.repos.d/

[root@test yum.repos.d]# touch google-chrome.repo

2. 修改源的配置資訊

[root@test yum.repos.d]# vi google-chrome.repo

# 配置

[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

3. yum 安裝

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

4. 把圖示考到桌面

[root@test yum.repos.d]# cp /usr/share/applications/google-chrome.desktop /root/桌面

# /usr/share/applications/ 為系統存放應用圖示的路徑

# /root/桌面 root 是你要copy到使用者的桌面, 我這裡桌面是中文是以這樣寫的

來源

https://blog.csdn.net/qq_40058321/article/details/103214656

繼續閱讀