Linux---Google Chrome的安装
Google Chrome
Google Chrome是一個(gè)由Google開發(fā)的一個(gè)網(wǎng)頁瀏覽器。“Chrome”是化學(xué)元素“鉻”的英文名稱;過去也用Chrome稱呼瀏覽器的外框。相應(yīng)的開源計(jì)劃名為Chromium,其采用BSD許可證授權(quán)并開放源代碼,但Google Chrome本身并非自由軟件,也未開放源代碼。因其市場占有率極高,性能卓越,相當(dāng)受歡迎,所以有必要在這里給讀者介紹Google Chrome的安裝使用。
? ? ?最近在學(xué)習(xí)linux,安裝的是redhat,自帶的firefox,由于不習(xí)慣firefox,想安裝一個(gè)chrome,老師教了些方法,總結(jié)一下方便以后查找。
1.創(chuàng)建一個(gè)文件/etc/yum.repos.d/google.repo
2.如果是32位Linux系統(tǒng):
[google-chrome]name=google-chrome - 32-bitbaseurl=http://dl-ssl.google.com/linux/linux_signing_key.pubenabled=1gpgcheck=0gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub如果是64位的Linux系統(tǒng):
[google-chrome]name=google-chrome - 64-bitbaseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64(此網(wǎng)址和實(shí)際可能有出入)enabled=1gpgcheck=0gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub3.安裝chrome
穩(wěn)定版
yum install google-chrome-stable測試版
yum install google-chrome-beta非穩(wěn)定版
yum install google-chrome-unstable4.運(yùn)行,默認(rèn)的root用戶無法運(yùn)行chrome除非設(shè)置了-user-data-dir,具體做法是
首先把chrome放到桌面和panel里面,然后右鍵點(diǎn)屬性吧它默認(rèn)的命令行
opt/google/chrome/google-chrome %U
修改為
opt/google/chrome/google-chrome -user-data-dir %U
就可以在root用戶使用chrome了
但采用yum本地源和上述方法安裝出錯(cuò)時(shí):我們可采用如下方法解決:
>[root@RedHat mnt]# cd /opt/cdrom/Packages/
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
base ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 1.3 kB ? ? 00:00 ...
base/primary ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | 1.3 MB ? ? 00:00 ...
base ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?2680/2680
Setting up Install Process
Examining google-chrome-stable_current_i386.rpm: google-chrome-stable-10.0.648.134-77917.i386
Marking google-chrome-stable_current_i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:10.0.648.134-77917 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package ? ? ? Arch Version ? ? ? ? ? ?Repository ? ? ? ? ? ? ? ? ? ? ? ? ?Size
================================================================================
Installing:
google-chrome-stable
? ? ? ? ? ? i386 10.0.648.134-77917 /google-chrome-stable_current_i386 ?83 M
Transaction Summary
================================================================================
Install ? ? ? 1 Package(s)
Upgrade ? ? ? 0 Package(s)
Total size: 83 M
Installed size: 83 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
Public key for google-chrome-stable_current_i386.rpm is not installed
兩種方法可以解決:
1.運(yùn)行
[root@RedHat Packages]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
可解決;
2.運(yùn)行
[root@RedHat Packages]# yum.conf 文件,把里面的gpgcheck=1改為gpgcheck=0。
注:方法2的效果很好
3.最好的解決辦法:
加上"--nogpgcheck"參數(shù)
[root@RedHat Packages]# yum install google-chrome-stable_current_i386.rpm --nogpgcheck
注意:在32位的操作系統(tǒng)中智能安裝32位的此軟件,64位的也可以安裝32的此軟件。
轉(zhuǎn)載于:https://blog.51cto.com/8598676/1398218
總結(jié)
以上是生活随笔為你收集整理的Linux---Google Chrome的安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Knockout中ViewModel与M
- 下一篇: 文件压缩与解压