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到用户的桌面, 我这里桌面是中文所以这样写的
相关推荐
___波子 Pro Max.1 小时前
Linux快速查看文件末尾字节方法
linux
Caster_Z2 小时前
WinServer安装VM虚拟机运行Linux-(失败,云服务器不支持虚拟化)
linux·运维·服务器
小小测试开发2 小时前
提升WebUI自动化效率与性能:从脚本到架构的全链路优化指南
运维·架构·自动化
少废话h3 小时前
Redis主从与集群搭建全指南
大数据·linux·redis·mysql
The star"'3 小时前
mysql(1-3)
运维·mysql·云计算
Cheadmaster3 小时前
20252820_进程管理实验
linux
model20054 小时前
Alibaba linux 3安装LAMP(5)
linux·运维·服务器
哇哈哈&4 小时前
安装wxWidgets3.2.0(编译高版本erlang的时候用,不如用rpm包),而且还需要高版本的gcc++19以上,已基本舍弃
linux·数据库·python
weixin_307779134 小时前
Jenkins中的Jakarta Activation API插件:功能、使用与最佳实践
运维·开发语言·ci/cd·自动化·jenkins
minihuabei6 小时前
跨域拉镜像
linux