From: clemens@dwf.com
Im trying to use YUM with Fedora3, (I previously used apt-get), and I must be doing something stupid, but I cant see it.
in /home/ftp/yum/fedora3/RPMS.os I have the RPMS from the 4 binary CDs in /home/ftp/yum/fedora3/RPMS.updates I have all the updates to date.
I have run yum-arch on each of them, viz
yum-arch /home/ftp/yum/fedora3/RPMS.os yum-arch /home/ftp/yum/fedora3/RPMS.updates
my /etc/yum.conf file reads
[root@orion etc]# more /etc/yum.conf [main] cachedir=/var/cache/yum # debuglevel=2 debuglevel=10 logfile=/var/log/yum.log pkgpolicy=newest # distroverpkg=redhat-release tolerant=1 exactarch=1 retries=20 obsoletes=1 # gpgcheck=1 gpgcheck=0
# PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d
[base] name=Fedora3 Core base baseurl=ftp://orion/yum/fedora3/RPMS.os gpgcheck=0
[updates] name=Fedora3 Core updates baseurl=ftp://orion/yum/fedora3/RPMS.updates gpgcheck=0
---
When I TRY to run 'yum update' to bring this initial install up to date, I get the message:
[root@orion ~]# yum update Repository base already added, not adding again Yum Version: 2.1.11 COMMAND: yum update Installroot: /
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.
---
Now I have several problems: (1) why is it saying 'You have enabled checking of packages via GPG keys' when I turned that off in [main] and in each section???
(2) The command 'rpm --import public.gpg.key' does NOT work, I get:
root@orion ~]# rpm --import public.gpg.key error: public.gpg.key: import read failed.
(3) What is this message 'Repository base already added, not adding again'
---
any and all help appreciated,- If I cant get this thing to work, or at least get some sensable error messages out of it, Im going to have to go back to apt-get (sigh).
Reg.Clemens reg@dwf.com
Am Sa, den 30.04.2005 schrieb Reg Clemens um 3:54:
Im trying to use YUM with Fedora3, (I previously used apt-get), and I must be doing something stupid, but I cant see it.
in /home/ftp/yum/fedora3/RPMS.os I have the RPMS from the 4 binary CDs in /home/ftp/yum/fedora3/RPMS.updates I have all the updates to date.
I have run yum-arch on each of them, viz
yum-arch /home/ftp/yum/fedora3/RPMS.os yum-arch /home/ftp/yum/fedora3/RPMS.updates
yum-arch is deprecated, createrepo is to be used.
http://www.fedoranews.org/contributors/richard_flude/repo/
my /etc/yum.conf file reads
[root@orion etc]# more /etc/yum.conf [main] cachedir=/var/cache/yum # debuglevel=2 debuglevel=10 logfile=/var/log/yum.log pkgpolicy=newest # distroverpkg=redhat-release tolerant=1 exactarch=1 retries=20 obsoletes=1 # gpgcheck=1 gpgcheck=0
# PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d
You did read that line above? It points to the fact that with yum on FC3 repositories are defined in repo files below the directory /etc/yum.repos.d/.
[base] name=Fedora3 Core base baseurl=ftp://orion/yum/fedora3/RPMS.os gpgcheck=0
[updates] name=Fedora3 Core updates baseurl=ftp://orion/yum/fedora3/RPMS.updates gpgcheck=0
When I TRY to run 'yum update' to bring this initial install up to date, I get the message:
[root@orion ~]# yum update Repository base already added, not adding again Yum Version: 2.1.11 COMMAND: yum update Installroot: /
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.
Now I have several problems: (1) why is it saying 'You have enabled checking of packages via GPG keys' when I turned that off in [main] and in each section???
Because you have repo files below /etc/yum.repos.d and there is a) [base] already defined and b) gpgcheck set on.
(2) The command 'rpm --import public.gpg.key' does NOT work, I get:
root@orion ~]# rpm --import public.gpg.key error: public.gpg.key: import read failed.
It fails simply because you have to use the proper path to the gpg key file.
http://www.fedoranews.org/tchung/yum-gpg
(3) What is this message 'Repository base already added, not adding again'
See above for your question (1).
Reg.Clemens
Alexander
Reg Clemens wrote:
From: clemens@dwf.com
Im trying to use YUM with Fedora3, (I previously used apt-get), and I must be doing something stupid, but I cant see it.
in /home/ftp/yum/fedora3/RPMS.os I have the RPMS from the 4 binary CDs in /home/ftp/yum/fedora3/RPMS.updates I have all the updates to date.
I have run yum-arch on each of them, viz
yum-arch /home/ftp/yum/fedora3/RPMS.os yum-arch /home/ftp/yum/fedora3/RPMS.updates
my /etc/yum.conf file reads
[root@orion etc]# more /etc/yum.conf [main] cachedir=/var/cache/yum # debuglevel=2 debuglevel=10 logfile=/var/log/yum.log pkgpolicy=newest # distroverpkg=redhat-release tolerant=1 exactarch=1 retries=20 obsoletes=1 # gpgcheck=1 gpgcheck=0
# PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d
[base] name=Fedora3 Core base baseurl=ftp://orion/yum/fedora3/RPMS.os gpgcheck=0
[updates] name=Fedora3 Core updates baseurl=ftp://orion/yum/fedora3/RPMS.updates gpgcheck=0
When I TRY to run 'yum update' to bring this initial install up to date, I get the message:
[root@orion ~]# yum update Repository base already added, not adding again Yum Version: 2.1.11 COMMAND: yum update Installroot: /
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.
Now I have several problems: (1) why is it saying 'You have enabled checking of packages via GPG keys' when I turned that off in [main] and in each section???
Because the ftp repos you specified turn it back on again. I think "gpgcheck=0" is ignored with ftp or http repos, but I won't swear to it.
(2) The command 'rpm --import public.gpg.key' does NOT work, I get:
root@orion ~]# rpm --import public.gpg.key error: public.gpg.key: import read failed.
You need to:
# cd /usr/share rhn # rpm --import *-GPG-KEY* # cd /usr/share/doc/redora-release-3 # rpm --import *-GPG-KEY* # cd /usr/share/rpm-4.3.2 # rpm --import *-GPG-KEY*
to import all of the keys.
(3) What is this message 'Repository base already added, not adding again'
Just an advisory message that it's already loaded the repository and doesn't need to do it again. It's safe to ignore. ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - Do you know where _your_ towel is? - ----------------------------------------------------------------------
Rick Stevens wrote:
You need to:
# cd /usr/share rhn # rpm --import *-GPG-KEY* # cd /usr/share/doc/redora-release-3 # rpm --import *-GPG-KEY* # cd /usr/share/rpm-4.3.2 # rpm --import *-GPG-KEY*
It's interesting that my news reader (knode) prints this as "rpm --import -GPG-KEY" with the last part in bold!
Also it should be fedora, not redora . And /usr/share/doc/rpm-4.3.2 .
But why are we not told where to look for the gpg key when we get the error message? Surely this must baffle many people?
Timothy Murphy wrote:
Also it should be fedora, not redora . And /usr/share/doc/rpm-4.3.2 .
But why are we not told where to look for the gpg key when we get the error message? Surely this must baffle many people?
If yum knew where to get the key from, it could import the key itself.
However, yum doesn't only run on Fedora, and the places that other distros and repos put their keys can't possibly be known to yum unless the repo maintainers provide that information in a place where yum can find it (e.g. in the .repo file for each repo).
Paul.
Timothy Murphy wrote:
Rick Stevens wrote:
You need to:
# cd /usr/share rhn # rpm --import *-GPG-KEY* # cd /usr/share/doc/redora-release-3 # rpm --import *-GPG-KEY* # cd /usr/share/rpm-4.3.2 # rpm --import *-GPG-KEY*
It's interesting that my news reader (knode) prints this as "rpm --import -GPG-KEY" with the last part in bold!
*bold* _underlined_
AFAIK it's some kind of markup notation...
Also it should be fedora, not redora . And /usr/share/doc/rpm-4.3.2 .
But why are we not told where to look for the gpg key when we get the error message? Surely this must baffle many people?
http://www.fedorafaq.org/#gpgsig they have the most common repos and their sigs there
Don't know if this is up2date...
Hth
Alex