Centos 7 安装通过yum安装google浏览器

在CentOS 7上使用yum安装Google Chrome浏览器稍微复杂一些,因为Chrome并不直接包含在默认的Yum仓库中。按照以下步骤来操作:

1、添加Google Chrome仓库

首先,您需要手动添加Google Chrome的Yum仓库。打开终端,并使用文本编辑器(如vi或nano)创建一个新的Yum仓库文件。例如,使用vi编辑器:

powershell 复制代码
 vi /etc/yum.repos.d/google-chrome.repo

在打开的文件中,复制并粘贴以下内容:

powershell 复制代码
[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

保存并退出编辑器(在vi中,您可以通过按ESC,输入:wq,然后按Enter键来完成这个操作)。

2、安装Google Chrome

添加仓库后,您可以安装Google Chrome了。在终端中运行以下命令来安装稳定版的Google Chrome:

进入yum仓库文件的文件夹下

powershell 复制代码
cd /etc/yum.repos.d/

开始安装

powershell 复制代码
 yum -y install google-chrome-stable --nogpgcheck


3、安装成功

4、 把图标考到桌面(可选)

powershell 复制代码
[root@chenfuguo yum.repos.d]# cp /usr/share/applications/google-chrome.desktop /root/桌面
 
 
# /usr/share/applications/ 为系统存放应用图标的路径
# /root/桌面 root 是你要copy到用户的桌面, 我这里桌面是中文所以这样写的
相关推荐
未济4 天前
linux 配置环境变量
linux
傲世仙尊4 天前
目录即文件-Ext文件系统收尾篇
linux·c语言
虎头金猫4 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
_艾伦 耶格尔.4 天前
进程间通信
linux
AI职业加油站4 天前
AI智能体应用工程师证书:政策红利下的职业新风口
大数据·运维·人工智能·学习·职场发展
Liuqy-054 天前
Linux IO编程——静态库、动态库
linux
此冬歌咏4 天前
K8s 节点故障实战:优雅驱逐 31 秒,硬故障 331 秒,以及那个永远 Pending 的 Pod
运维·k8s
彧azz4 天前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅4 天前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK4 天前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid