yum --installroot and GPG key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 2005-09-10 at 16:22 +0200, Morten wrote:
> Hi.
> 
> When I try to use --installroot, I get the following:
> 
> ---
> [root@machine ~]# yum --installroot=/data/xchg-2.0/ install apache2
> 
> 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
> 
> 
> Alternatively you can specify the url to the key you would like to use
> for a repository in the 'gpgkey' option in a repository section and yum
> will install it for you.
> 
> For more information contact your distribution or package provider.
> ---
> 
> Where is the GPG key I need to import? I've tried:
> 
> [root@machine ~]# rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
> [root@machine ~]# rpm --import /usr/share/rhn/RPM-GPG-KEY
> [root@machine ~]# rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY
> [root@machine ~]# rpm --import 
> /usr/share/doc/centos-release-4/RPM-GPG-KEY-centos4
> 
> But no such luck... Anyone know where to look?

The problem is that inside your chroot (the installroot) you don't have
a key installed yet.

installroot might not be what you want to do ... it is going to create a
chroot.

If that is what, you should create a custom yum.conf for the chroot ...
for the initial part of the install, set the repos to gpgcheck=0.

You can then chroot into the location and install the key inside the
chroot, copy your yum.conf into the chroot and change it to gpgcheck=1
again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20050910/96d81dc0/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux