Re: How do I install GPG keys for yum?

From: Matt (matt_at_themattfella.zzzz.com)
Date: 02/10/04


Date: Tue, 10 Feb 2004 18:00:30 GMT

Andreas Tretow wrote:
> On Tue, 10 Feb 2004 05:51:05 +0000, Matt wrote:
>
> [Followup-to set to linux.redhat.install]
>
>
>>G. Wolfe Woodbury wrote:
>>
>>>Matt <matt@themattfella.zzzz.com> shaped electrons to say:
>>>
>>>
>>>>Hi--
>>>>
>>>>After making a fresh RH8.0 install, I downloaded yum and its supporting
>>>>rpm's starting from http://www.fedora.us/wiki/FedoraHOWTO. Apparently
>>>>fedora.us makes their own particular yum package.
>>>>
>>>>After getting that yum installed, I ran it to update my installed
>>>>packages. All seemed to be going well until yum announced that it
>>>>couldn't install the first package because:
>>>>
>>>> Could not find the GPG key necessary to validate pkg <package-name>.
>>>>
>>>>It suggested that I run 'yum clean', which I guess had the effect of
>>>>removing all rpm's for which yum couldn't find keys, which was everything.
>>>>
>>>>It also mentioned in passing :-) that:
>>>>
>>>> You may also check that you have the correct GPG keys installed
>>>>
>>>>I checked the man page and looked for GPG keys here and there but am
>>>>left without any promising clues.
>>>>
>>>>So how do I install the GPG keys for yum?
>>>
>>>
>>>The command for importing GPG keys is from RPM
>>>
>>> rpm --import <key_file>
>>>
>>>The keyfiles are generally in /usr/share/rhn or on the top-level of the
>>>first install cd.
>>>
>>
>>I took the file RPM-GPG-KEY from the top-level of the first RH8.0
>>install CD and ran 'rpm --import RPM-GPG-KEY', and that did not seem to
>>help. Do I need a different key for RH8.0 updates? Or maybe yum is
>>somehow trying to fetch packages not released by Redhat? That doesn't
>>sound right. Or maybe yum can't see rpm's config files?
>
>
> Yum can't see the rpm config and doesn't need to because the rpm utility
> does the checking internally. You should check your /etc/yum.conf for
> entries other than core and updates, like eg. freshrpms. If you have this
> entry, you also need to import the freshrpms gpg key as well (same goes
> for other package maintainers). For further info and the freshrpms
> key check
>
> http://freshrpms.net/packages/
>
> HTH
> Andreas
>

Thanks. I downloaded the freshrpms key from that site, but it didn't
help. Here is the same old output:

Gathering header information file(s) from server(s)
Server: Fedora Linux / stable for Red Hat Linux 8.0 (i386)
Server: Macromedia Flash Player for Red Hat Linux 8.0
Server: Red Hat Linux 8.0 (i386)
Server: Red Hat Linux 8.0 (i386) updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: kernel 2.4.20-28.8.i586]

<snip about 20 package names>

[update: tcpdump 14:3.6.3-17.8.0.5.legacy.i386]

<snip about 5 package names>

Is this ok [y/N]: y

warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 731002fa
Error: Could not find the GPG Key necessary to validate pkg
/var/cache/yum/redhat-updates/packages/tcpdump-3.6.3-17.8.0.5.legacy.i386.rpm
Error: You may want to run yum clean or remove the file:
 
/var/cache/yum/redhat-updates/packages/tcpdump-3.6.3-17.8.0.5.legacy.i386.rpm
Error: You may also check that you have the correct GPG keys installed



Relevant Pages

  • Re: How do I install GPG keys for yum?
    ... Do I need a different key for RH8.0 updates? ... Or maybe yum can't see rpm's config files? ... > for other package maintainers). ... Fedora Linux / stable for Red Hat Linux 8.0 ...
    (linux.redhat.install)
  • Re: How do I install GPG keys for yum?
    ... Do I need a different key for RH8.0 updates? ... Or maybe yum can't see rpm's config files? ... > for other package maintainers). ... Fedora Linux / stable for Red Hat Linux 8.0 ...
    (alt.os.linux.redhat)
  • Re: Easy way to update Fedora
    ... >>What is the easiest way to update Fedora. ... >>about yum but it has never worked for me, ... > packages or type a package name ... > UPDATES TO SYSTEM AND PROGRAMS: ...
    (Fedora)
  • Re: Yum: the dreaded metadata disease
    ... but it is completely useless to the yum user. ... First of all, the term "Metadata file" is incomprehensible to me, ... it is possible to get a list that's not been fully updated after a new package has been uploaded. ... When yum goes out to a repo to check for updates, it's downloading that list of files - that's the metadata package-list file. ...
    (Fedora)
  • Re: Why radeontool?
    ... when I ran 'yum update' on F7 I got two packages ... >> The two new packages are vbetool and radeontool. ... But as the updates started to arrive first one and then another problem would disappear. ... more about package management how's and why's. ...
    (Fedora)