Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

How to install GPG Key for yum in FC3

by Thomas Chung on Nov 10, 2004

By default, GPG Key Check is enabled for yum in Fedora Core 3 so you will see following message:

[tchung@localhost ~]$ sudo yum update
Password:

You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
    rpm --import public.gpg.key
For more information contact your distribution or package provider.
[tchung@localhost ~]$

To install GPG Key from Fedora Project:

[tchung@localhost ~]$ sudo rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora

Now you should able to use yum with GPG Key Check:

[tchung@localhost ~]$ sudo yum update
Setting up Update Process
Setting up Repo:  base
repomd.xml                100% |=========================| 1.1 kB    00:00
Setting up Repo:  updates-released
repomd.xml                100% |=========================|  951 B    00:00
Reading repository metadata in from local files
base      : ################################################## 2622/2622
primary.xml.gz            100% |=========================|  50 kB    00:00
MD Read   : ################################################## 127/127
updates-re: ################################################## 127/127
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for initscripts to pack into transaction set.
initscripts-7.93.5-1.i386 100% |=========================|  86 kB    00:01
---> Package initscripts.i386 0:7.93.5-1 set to be updated
---> Downloading header for ipsec-tools to pack into transaction set.
ipsec-tools-0.3.3-2.i386. 100% |=========================| 5.4 kB    00:00
---> Package ipsec-tools.i386 0:0.3.3-2 set to be updated
---> Downloading header for zip to pack into transaction set.
zip-2.3-26.3.i386.rpm     100% |=========================| 5.7 kB    00:00
---> Package zip.i386 0:2.3-26.3 set to be updated
---> Downloading header for words to pack into transaction set.
words-3.0-2.noarch.rpm    100% |=========================| 3.7 kB    00:00
---> Package words.noarch 0:3.0-2 set to be updated
---> Downloading header for bash to pack into transaction set.
bash-3.0-18.i386.rpm      100% |=========================|  47 kB    00:00
---> Package bash.i386 0:3.0-18 set to be updated
---> Downloading header for slang to pack into transaction set.
slang-1.4.9-7.i386.rpm    100% |=========================| 5.9 kB    00:00
---> Package slang.i386 0:1.4.9-7 set to be updated
---> Downloading header for udev to pack into transaction set.
udev-039-10.FC3.1.i386.rp 100% |=========================|  21 kB    00:00
---> Package udev.i386 0:039-10.FC3.1 set to be updated
---> Downloading header for system-config-users to pack into transaction set.
system-config-users-1.2.2 100% |=========================|  29 kB    00:00
---> Package system-config-users.noarch 0:1.2.27-0.fc3.1 set to be updated
---> Downloading header for slang-devel to pack into transaction set.
slang-devel-1.4.9-7.i386. 100% |=========================|  12 kB    00:00
---> Package slang-devel.i386 0:1.4.9-7 set to be updated
---> Downloading header for gpdf to pack into transaction set.
gpdf-2.8.0-8.i386.rpm     100% |=========================|  20 kB    00:00
---> Package gpdf.i386 0:2.8.0-8 set to be updated
---> Downloading header for wireless-tools to pack into transaction set.
wireless-tools-27-0.pre25 100% |=========================| 7.4 kB    00:00
---> Package wireless-tools.i386 1:27-0.pre25.3 set to be updated
---> Downloading header for shadow-utils to pack into transaction set.
shadow-utils-4.0.3-38.i38 100% |=========================|  29 kB    00:00
---> Package shadow-utils.i386 2:4.0.3-38 set to be updated
---> Downloading header for gnome-media to pack into transaction set.
gnome-media-2.8.0-3.FC3.1 100% |=========================|  76 kB    00:00
---> Package gnome-media.i386 0:2.8.0-3.FC3.1 set to be updated
---> Downloading header for jwhois to pack into transaction set.
jwhois-3.2.2-6.FC3.1.i386 100% |=========================| 6.5 kB    00:00
---> Package jwhois.i386 0:3.2.2-6.FC3.1 set to be updated
---> Downloading header for arts to pack into transaction set.
arts-1.3.1-1.i386.rpm     100% |=========================|  20 kB    00:00
---> Package arts.i386 8:1.3.1-1 set to be updated
---> Downloading header for cvs to pack into transaction set.
cvs-1.11.17-4.i386.rpm    100% |=========================|  16 kB    00:00
---> Package cvs.i386 0:1.11.17-4 set to be updated
---> Downloading header for hotplug to pack into transaction set.
hotplug-2004_04_01-8.i386 100% |=========================|  13 kB    00:00
---> Package hotplug.i386 3:2004_04_01-8 set to be updated
--> Running transaction check
 
Dependencies Resolved
Transaction Listing:
  Update: arts.i386 8:1.3.1-1
  Update: bash.i386 0:3.0-18
  Update: cvs.i386 0:1.11.17-4
  Update: gnome-media.i386 0:2.8.0-3.FC3.1
  Update: gpdf.i386 0:2.8.0-8
  Update: hotplug.i386 3:2004_04_01-8
  Update: initscripts.i386 0:7.93.5-1
  Update: ipsec-tools.i386 0:0.3.3-2
  Update: jwhois.i386 0:3.2.2-6.FC3.1
  Update: shadow-utils.i386 2:4.0.3-38
  Update: slang.i386 0:1.4.9-7
  Update: slang-devel.i386 0:1.4.9-7
  Update: system-config-users.noarch 0:1.2.27-0.fc3.1
  Update: udev.i386 0:039-10.FC3.1
  Update: wireless-tools.i386 1:27-0.pre25.3
  Update: words.noarch 0:3.0-2
  Update: zip.i386 0:2.3-26.3
Is this ok [y/N]: y
Downloading Packages:
initscripts-7.93.5-1.i386 100% |=========================| 1.0 MB    00:03
ipsec-tools-0.3.3-2.i386. 100% |=========================| 220 kB    00:01
zip-2.3-26.3.i386.rpm     100% |=========================| 114 kB    00:00
words-3.0-2.noarch.rpm    100% |=========================| 1.4 MB    00:04
bash-3.0-18.i386.rpm      100% |=========================| 1.7 MB    00:05
slang-1.4.9-7.i386.rpm    100% |=========================| 381 kB    00:01
udev-039-10.FC3.1.i386.rp 100% |=========================| 655 kB    00:02
system-config-users-1.2.2 100% |=========================| 275 kB    00:01
slang-devel-1.4.9-7.i386. 100% |=========================| 520 kB    00:01
gpdf-2.8.0-8.i386.rpm     100% |=========================| 736 kB    00:02
wireless-tools-27-0.pre25 100% |=========================|  92 kB    00:00
shadow-utils-4.0.3-38.i38 100% |=========================| 483 kB    00:01
gnome-media-2.8.0-3.FC3.1 100% |=========================| 2.5 MB    00:07
jwhois-3.2.2-6.FC3.1.i386 100% |=========================|  77 kB    00:00
arts-1.3.1-1.i386.rpm     100% |=========================| 1.1 MB    00:03
cvs-1.11.17-4.i386.rpm    100% |=========================| 1.2 MB    00:03
hotplug-2004_04_01-8.i386 100% |=========================|  61 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating: bash 100 % done 1/34
Updating: hotplug 100 % done 2/34
Updating: udev 100 % done 3/34
Updating: shadow-utils 100 % done 4/34
Updating: initscripts 100 % done 5/34
Updating: slang 100 % done 6/34
Updating: gnome-media 100 % done 7/34
Updating: arts 100 % done 8/34
Updating: wireless-tools 100 % done 9/34
Updating: ipsec-tools 100 % done 10/34
Updating: zip 100 % done 11/34
Updating: words 100 % done 12/34
Updating: system-config-users 100 % done 13/34
Updating: slang-devel 100 % done 14/34
Updating: gpdf 100 % done 15/34
Updating: jwhois 100 % done 16/34
Updating: cvs 100 % done 17/34
Completing update for initscripts  - 18/34
Completing update for ipsec-tools  - 19/34
Completing update for zip  - 20/34
Completing update for words  - 21/34
Completing update for bash  - 22/34
Completing update for slang  - 23/34
Completing update for udev  - 24/34
Completing update for system-config-users  - 25/34
Completing update for slang-devel  - 26/34
Completing update for gpdf  - 27/34
Completing update for wireless-tools  - 28/34
Completing update for shadow-utils  - 29/34
Completing update for gnome-media  - 30/34
Completing update for jwhois  - 31/34
Completing update for arts  - 32/34
Completing update for cvs  - 33/34
Completing update for hotplug  - 34/34
 
Updated: arts.i386 8:1.3.1-1 bash.i386 0:3.0-18 cvs.i386 0:1.11.17-4 gnome-media.i386 0:2.8.0-3.FC3.1 
gpdf.i386 0:2.8.0-8 hotplug.i386 3:2004_04_01-8 initscripts.i386 0:7.93.5-1 ipsec-tools.i386 0:0.3.3-2 
jwhois.i386 0:3.2.2-6.FC3.1 shadow-utils.i386 2:4.0.3-38 slang.i386 0:1.4.9-7 slang-devel.i386 0:1.4.9-7 
system-config-users.noarch 0:1.2.27-0.fc3.1 udev.i386 0:039-10.FC3.1 wireless-tools.i386 1:27-0.pre25.3 
words.noarch 0:3.0-2 zip.i386 0:2.3-26.3
Complete!
[tchung@localhost ~]$

References:
- Fedora Project GPG Keys