Ubuntu、Linux Mint一键安装Chrome浏览器的Shell脚本分享

爱蒂网

Ubuntu、Linux Mint一键安装Chrome浏览器的Shell脚本分享

2020-03-12 09:31:48 分类 / 代码专栏 来源 / 互联网

这篇文章主要介绍了Ubuntu、Linux Mint一键安装Chrome浏览器的Shell脚本分享,本文直接给出实现代码,需要的朋友可以参考下

把下面的脚本保存为xxx.sh,然后 sudo sh xxx.sh

复制代码 代码如下:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
#下面是稳定版
#sudo apt-get -y install google-chrome-stable
#下面是beta版
sudo apt-get -y install google-chrome-beta
#下面是不稳定版
#sudo apt-get -y install google-chrome-unstable

猜你喜欢