Install Google Chrome on Fedora 28/27, CentOS/RHEL 7.5 (在 fedora 28 等 上 安装 chrome)
程序员文章站
2022-06-30 12:02:04
今天在使用 fedora 安装 chrome 的时候遇到了问题,今天进行将安装过程进行记录下来。需要安装第三方软件仓库。 我们需要进行安装 fedora-workstation-repositories 这个仓库 使用 yum/dnf 命令 安装并开启chrome 仓库,安装这个 rpm 包就是在/ ......
今天在使用 fedora 安装 chrome 的时候遇到了问题,今天进行将安装过程进行记录下来。需要安装第三方软件仓库。
我们需要进行安装 fedora-workstation-repositories 这个仓库 使用 yum/dnf 命令
[root@localhost ~]# yum info fedora-workstation-repositories last metadata expiration check: 0:07:55 ago on thu 06 sep 2018 08:54:18 am edt. installed packages name : fedora-workstation-repositories version : 28 release : 1.fc28 arch : noarch size : 3.2 k source : fedora-workstation-repositories-28-1.fc28.src.rpm repo : @system from repo : fedora summary : repository files for searchable repositories url : https://fedoraproject.org/wiki/workstation/third_party_software_repositories license : gpl description : repository files that make some select non-fedora software available : via search in gnome-software.
安装并开启chrome 仓库,安装这个 rpm 包就是在/etc/yum.repo.d 文件夹中生成仓库文件:
dnf install fedora-workstation-repositories dnf config-manager --set-enabled google-chrome
在 fedora 26/25 centos/rhel 7.5 上,使用下列代码添加仓库:
cat << eof > /etc/yum.repos.d/google-chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl.google.com/linux/linux_signing_key.pub eof
安装稳定版:
## install google chrome stable version ## ## fedora 28/27/26/25 ## dnf install google-chrome-stable ## centos/rhel 7.5 ## yum install google-chrome-stable
安装测试版:
## install google chrome unstable version ## ## fedora 28/27/26/25 ## dnf install google-chrome-unstable ## centos/rhel 7.5 ## yum install google-chrome-unstable
安装不稳定版:
## install google chrome unstable version ## ## fedora 28/27/26/25 ## dnf install google-chrome-unstable ## centos/rhel 7.5 ## yum install google-chrome-unstable
安装完整后,即可使用。
上则命令中chrome安装文件位置分布如下,使用rpm 命令可进行检测:
/etc/cron.daily/google-chrome /opt/google/chrome /opt/google/chrome/meipreload /opt/google/chrome/meipreload/manifest.json /opt/google/chrome/meipreload/preloaded_data.pb /opt/google/chrome/chrome /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome_100_percent.pak /opt/google/chrome/chrome_200_percent.pak /opt/google/chrome/default-app-block /opt/google/chrome/default_apps /opt/google/chrome/default_apps/docs.crx /opt/google/chrome/default_apps/drive.crx /opt/google/chrome/default_apps/external_extensions.json /opt/google/chrome/default_apps/gmail.crx /opt/google/chrome/default_apps/youtube.crx /opt/google/chrome/google-chrome /opt/google/chrome/icudtl.dat /opt/google/chrome/libwidevinecdm.so /opt/google/chrome/locales /opt/google/chrome/locales/am.pak /opt/google/chrome/locales/ar.pak /opt/google/chrome/locales/bg.pak /opt/google/chrome/locales/bn.pak /opt/google/chrome/locales/ca.pak /opt/google/chrome/locales/cs.pak /opt/google/chrome/locales/da.pak /opt/google/chrome/locales/de.pak /opt/google/chrome/locales/el.pak /opt/google/chrome/locales/en-gb.pak /opt/google/chrome/locales/en-us.pak /opt/google/chrome/locales/es-419.pak /opt/google/chrome/locales/es.pak /opt/google/chrome/locales/et.pak /opt/google/chrome/locales/fa.pak /opt/google/chrome/locales/fi.pak /opt/google/chrome/locales/fil.pak /opt/google/chrome/locales/fr.pak /opt/google/chrome/locales/gu.pak /opt/google/chrome/locales/he.pak /opt/google/chrome/locales/hi.pak /opt/google/chrome/locales/hr.pak /opt/google/chrome/locales/hu.pak /opt/google/chrome/locales/id.pak /opt/google/chrome/locales/it.pak /opt/google/chrome/locales/ja.pak /opt/google/chrome/locales/kn.pak /opt/google/chrome/locales/ko.pak /opt/google/chrome/locales/lt.pak /opt/google/chrome/locales/lv.pak /opt/google/chrome/locales/ml.pak /opt/google/chrome/locales/mr.pak /opt/google/chrome/locales/ms.pak /opt/google/chrome/locales/nb.pak /opt/google/chrome/locales/nl.pak /opt/google/chrome/locales/pl.pak /opt/google/chrome/locales/pt-br.pak /opt/google/chrome/locales/pt-pt.pak /opt/google/chrome/locales/ro.pak /opt/google/chrome/locales/ru.pak /opt/google/chrome/locales/sk.pak /opt/google/chrome/locales/sl.pak /opt/google/chrome/locales/sr.pak /opt/google/chrome/locales/sv.pak /opt/google/chrome/locales/sw.pak /opt/google/chrome/locales/ta.pak /opt/google/chrome/locales/te.pak /opt/google/chrome/locales/th.pak /opt/google/chrome/locales/tr.pak /opt/google/chrome/locales/uk.pak /opt/google/chrome/locales/vi.pak /opt/google/chrome/locales/zh-cn.pak /opt/google/chrome/locales/zh-tw.pak /opt/google/chrome/nacl_helper /opt/google/chrome/nacl_helper_bootstrap /opt/google/chrome/nacl_irt_x86_64.nexe /opt/google/chrome/natives_blob.bin /opt/google/chrome/product_logo_128.png /opt/google/chrome/product_logo_16.png /opt/google/chrome/product_logo_22.png /opt/google/chrome/product_logo_24.png /opt/google/chrome/product_logo_256.png /opt/google/chrome/product_logo_32.png /opt/google/chrome/product_logo_32.xpm /opt/google/chrome/product_logo_48.png /opt/google/chrome/product_logo_64.png /opt/google/chrome/resources.pak /opt/google/chrome/swiftshader /opt/google/chrome/swiftshader/libegl.so /opt/google/chrome/swiftshader/libglesv2.so /opt/google/chrome/v8_context_snapshot.bin /opt/google/chrome/xdg-mime /opt/google/chrome/xdg-settings /usr/bin/google-chrome /usr/bin/google-chrome-stable /usr/share/appdata/google-chrome.appdata.xml /usr/share/applications/google-chrome.desktop /usr/share/gnome-control-center/default-apps/google-chrome.xml /usr/share/man/man1/google-chrome-stable.1.gz /usr/share/man/man1/google-chrome.1.gz
保持更新,转载请注明出处。