Centos 8 安装google浏览器(yum)

编程知识 更新时间:2023-04-24 07:19:09

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/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google/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到用户的桌面, 我这里桌面是中文所以这样写的

 

更多推荐

Centos 8 安装google浏览器(yum)

本文发布于:2023-04-18 11:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/7f44ccf09aff53f97a7ff55e0aeb6971.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   Centos   google   yum

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 85582文章数
  • 15703阅读数
  • 0评论数