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到用户的桌面, 我这里桌面是中文所以这样写的

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章