Friday, April 3, 2009

How to set the Google repository for gnu/Linux.


Google's Linux software repositories make it easier to download and stay up-to-date with current releases of Google Linux applications.First, we have to use rpm to install the key. Here are the steps to do!

Command line configuration for RPM.

On an RPM-based system (Fedora, SUSE, Mandriva, RHEL, etc.), download the key and then use rpm to install it.

Run these commands as root:

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

You can verify the key installation by running:

3) rpm -qi gpg-pubkey-7fac5991-4615767f

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

4) rpm --checksig -v packagename.rpm


Command line configuration for YUM

As root, create a file 'google.repo' in /etc/yum.repos.d/ and add the following lines to it.

[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1

If your .repo file contains gpgcheck=1, signatures will automatically be verified during installation.

If you are running a 64-bit distribution, you should also add the x86_64 repository, which will provide you with native 64-bit versions of some of google's software:

[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1

You can then use yum as usual, e.g.

yum install picasa
yum install desktop-backgrounds-basic
tell2humanlinux@gmail.com

No comments:

Post a Comment