2011年4月9日星期六

Linux 安装Google应用程序

1. 添加Google源
稳定版源:
vi /etc/yum.repos.d/google-stable.repo
x86
----------------------------------------------------------------------------------------------------

[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
----------------------------------------------------------------------------------------------------
x86-64
----------------------------------------------------------------------------------------------------
[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
----------------------------------------------------------------------------------------------------
测试源:
vi /etc/yum.repos.d/google-testing.repo
x86
----------------------------------------------------------------------------------------------------
[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/testing/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
----------------------------------------------------------------------------------------------------
x86-64
----------------------------------------------------------------------------------------------------
[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/testing/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
----------------------------------------------------------------------------------------------------

出现如下错误:

----------------------------------------------------------------------------------------------------
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 7fac5991
picasa-3.0.5744-02.i386.rpm 的公钥没有安装
----------------------------------------------------------------------------------------------------
解决办法:(来自Google官方帮助: http://www.google.com/linuxrepositories/rpm.html)

Run these commands as root:

wget https://dl-ssl.google.com/linux/linux_signing_key.pub
rpm --import linux_signing_key.pub

You can verify the key installation by running:

rpm -qi gpg-pubkey-7fac5991-*

To manually verify an RPM package, you can run the command:

rpm --checksig -v packagename.rpm

RPM can verify and install packages, but it doesn't interact with repositories directly. See the other configuration guides for information on configuring your system to use the Google repositories.

======================================================================


安装应用:
安装Picasa:
# yum install picasa

没有评论: