blfs(systemd版本)学习笔记-构建google-chrome浏览器

一.google-chrome浏览器官网下载地址

我只找到了deb包和rpm包的下载地址

1.https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2.https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

二.安装google-chrome浏览器

只找到deb或rpm包,所以要手动复制粘贴压缩包里面的文件到对应目录

1.在本机解压google-chrome的deb或rpm目录并打包为tar.gz的格式上传至lfs主机

2.创建google-chrome目录

mkdir google-chrome-stable

2.将下载的包解压至该目录并且更改权限为root

cd google-chrome-stable

tar -xvf ../google-chrome-stable_current_amd64.tar.gz

chown -R root:root ./*

3.复制或移动相应的文件

#mv opt/google  /opt
#mv usr/bin/google-chrome-stable  /usr/bin/
#mv usr/share/appdata/google-chrome.appdata.xml  /usr/share/appdata/
#mv  usr/share/applications/google-chrome.desktop  /usr/share/applications/
#mv usr/share/doc/google-chrome-stable/ /usr/share/doc/
#mv  usr/share/gnome-control-center/default-apps  /usr/share/gnome-control-center/
#mv usr/share/man/man1/man1/* /usr/share/man/man1/

4.配置google-chrome

#chmod 4755 /opt/google/chrome/chrome-sandbox

猜你喜欢

转载自www.cnblogs.com/renren-study-notes/p/10427794.html