查看linux系统版本 cat /etc/redhat-release
linux默认安装目录:/opt/google
安装命令:sudo yum localinstall google-chrome-stable_current_x86_64.rpm
or yum install google-chrome-stable_current_x86_64.rpm
卸载命令:yum remove google-chrome
linux安装chrome会出现某些依赖包超时,trying other mirror这种情况,导致安装失败,需要更新yum源
1、把原有CentOS-Base.repo备份
2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ ,下载文件改名为CentOS-Base.repo
CentOS 5:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、运行yum makecache生成缓存
即:yum makecache