LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installation problem of rpm packages (https://www.linuxquestions.org/questions/linux-software-2/installation-problem-of-rpm-packages-616780/)

chinmayee 01-28-2008 02:25 AM

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

hal8000b 01-28-2008 02:58 AM

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

reddazz 01-28-2008 04:50 AM

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

chinmayee 01-29-2008 01:06 AM

@ reddazz

no output for the executed command

$rpm -qa | grep -i perl-BDI

can anyone explain me about the "gpgkey"??

chinmayee 01-29-2008 01:11 AM

@ 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

lazlow 01-29-2008 02:21 AM

You usually need to import the specific key from the source of the rpm.

reddazz 01-29-2008 04:15 AM

Try the following
Code:

#yum install perl-DBI

chinmayee 01-29-2008 04:51 AM

@ 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.

unSpawn 01-29-2008 05:40 AM

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).

reddazz 01-29-2008 10:01 AM

Quote:

Originally Posted by chinmayee (Post 3038606)
@ 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.

Did you try installing the package using yum?

lazlow 01-29-2008 12:41 PM

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.

reddazz 01-29-2008 02:36 PM

Quote:

Originally Posted by lazlow (Post 3038994)
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.

I am pretty sure that you do not have to manually import any keys if you are using yum to install packages from the official CentOS repos. I don't remember having to do this in CentOS 4, but then again I could be wrong.

lazlow 01-29-2008 02:52 PM

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.

reddazz 01-29-2008 04:10 PM

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

chinmayee 01-30-2008 12:56 AM

Quote:

Originally Posted by reddazz (Post 3039206)
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


Thanks a lot!!
perl-DBI package is installed!!


All times are GMT -5. The time now is 03:21 PM.