[Spacewalk-list] How to set the package Content Provider

Jesus M. Rodriguez jmrodri at gmail.com
Wed Nov 19 01:38:25 UTC 2008


On Tue, Nov 18, 2008 at 11:56 AM, Justin Sherrill <jsherril at redhat.com> wrote:
> The installing OS doesn't really make any difference. We store a mapping
> of GPG Key ids -> Providers in the rhnPackageKey table.  Here's an
> example of an insertion that we do upon installation of spacewalk:
>
> #sqlplus spacewalk/spacewalk at xe
>
> sqlplus>  insert into rhnPackageKey (id, key_id, key_type_id,
> provider_id) values
> (rhn_pkey_id_seq.nextval, 'b44269d04f2a6fd2',
> lookup_package_key_type('gpg'), lookup_package_provider('Fedora'));
>
> This requires on their being a package provider (from
> rhnPackageProvider) named 'Fedora'.  To insert that, we ran:
>
> sqlplus>  insert into rhnPackageProvider (id, name) values
> (rhn_package_provider_id_seq.nextval, 'Fedora' );
> sqlplus>commit
>
>
> To get the gpg key ID that you need to insert, simply run 'rpm -qip
> package.rpm' and look for the "Key ID" field.   I'd like to make a UI
> for adding package Ids and providers, but currently there isn't a way to
> do that.  What were the GPG ids for packages that are showing up as unknown?

How will custom keys get imported into this table?

jesus




More information about the Spacewalk-list mailing list