installation problem of rpm packages
Hi
I am using a CENTOS 4 OS, during the installation of rpm package I am getting this error, rpm -i perl-DBI-1.40-8.i386.rpm warning: perl-DBI-1.40-8.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821 I have also logged in as root!! I am not able to proceed further even using the "gpgkey" option rpm --import public.gpg.key error: public.gpg.key: import read failed. kindly help me out |
I dont use Cent OS, but in Suse if a package was not verified you could use the --force option.
Use it at your own risk, syntax is: rpm -ivh --force package.rpm |
Thats just a warning and it does not necessarily mean that the package was not installed. What is the output of doing
Code:
$rpm -qa | grep -i perl-BDI |
@ reddazz
no output for the executed command $rpm -qa | grep -i perl-BDI can anyone explain me about the "gpgkey"?? |
@ hal8000b
even now the warning message is d same!! rpm -ivh --force perl-DBI-1.40-8.i386.rpm warning: perl-DBI-1.40-8.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821 This should be something related to the gpgkey.. plz help me out |
You usually need to import the specific key from the source of the rpm.
|
Try the following
Code:
#yum install perl-DBI |
@ lazlow & reddazz
How do i import the key?? i tried using the following command but got the error, rpm --import public.gpg.key error: public.gpg.key: import read failed. |
Where the instructions read "rpm --import public.gpg.key" you shouldn't take it literally unless you saved the GPG key as a file named "public.gpg.key". Try 'rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4' as root (not use --nosignature).
|
Quote:
|
Even if you use yum (which would be better) you will either have to use the import key or set it not to check the key (gpgcheck=1 check key, gpgcheck=0 no key, in the repo file).
If you got the rpm from centos Unspawn should be right. |
Quote:
|
It depends on how you installed yum support for that repo. If you use a rpm then it was contained within the rpm and you just made a one time exception.
|
I've looked at the centos-release rpm and can confirm that it installs the gpg keys as well as setup the official repos during initial setup. This means that installing a packge using yum should not pester the user with regards to CentOS gpg keys if the packages are from their official repos. If this happens, the user can simply do
Code:
#rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY |
Quote:
Thanks a lot!! perl-DBI package is installed!! |
All times are GMT -5. The time now is 03:21 PM. |