trouble with yum localinstall of libapreq2

General support questions including new installations
Posts: 4
Joined: 2009/01/22 21:34:14

trouble with yum localinstall of libapreq2

Postby xiongchiamiov » 2009/01/22 22:19:05

I've been trying for a few hours to get libapreq2 working on CentOS 5.2. Installing from CPAN fails, and downloading the source from CPAN and compiling it manually succeeds, but puts the files in odd directories. When I move them to the directory filestructure that Apache expects, they return errors. However, I'd prefer to get libapreq2 installed via yum, so I'll leave off more details on the compiling route unless I absolutely have to go that way.

Background: I've only been using Linux for a little over a year, but I kinda dived in. I have experience with APT and Arch Linux's pacman, but not rpm.

I found some rpms via, which led me here. I've downloaded libapreq2 and libapreq2-devel. This is what I did to install libapreq2:

Code: Select all

sudo yum localinstall libapreq2-2.09-0.rc2.1.el5.i386.rpm -y
Loading "fastestmirror" plugin
Setting up Local Package Process
Loading mirror speeds from cached hostfile
 * rpmforge:
 * base:
 * updates:
 * addons:
 * extras:
Examining libapreq2-2.09-0.rc2.1.el5.i386.rpm: libapreq2 - 2.09-0.rc2.1.el5.i386
Marking libapreq2-2.09-0.rc2.1.el5.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libapreq2.i386 0:2.09-0.rc2.1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package                 Arch       Version          Repository        Size
 libapreq2               i386       2.09-0.rc2.1.el5  libapreq2-2.09-0.rc2.1.el5.i386.rpm  105 k

Transaction Summary
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 105 k
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6

Public key for libapreq2-2.09-0.rc2.1.el5.i386.rpm is not installed

Yum list doesn't show it installed:

Code: Select all

[pearson@hostname35248 packages]$ yum list | grep apreq
[pearson@hostname35248 packages]$

Now, I'm guessing that the fact that a public key for the package is not installed means that the package itself is not installed (why can't they just say that?). Reading here seems to indicate that I need to import a public key from somewhere, but I'm a bit at a loss as to where I'm supposed to get it.

I appreciate your help, and please excuse any stupid overlooks on my part.

Posts: 2580
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: trouble with yum localinstall of libapreq2

Postby pjwelsh » 2009/01/22 22:38:31

At first glance, you do not have the GPG key for the repo that has the package. You should make sure to install that key. You could run "yumdownloader libapreq2" (part of the "yum-utils" package) then install via "rpm -ihv libapreq2-2.09-0.rc2.1.el5.i386.rpm" or run "yum -y --nogpgcheck install libapreq2". But you should still really strive to get the key!

Posts: 4
Joined: 2009/01/22 21:34:14

Re: trouble with yum localinstall of libapreq2

Postby xiongchiamiov » 2009/01/27 10:00:43

Thanks, that's what I was looking for! I could have probably found that out myself on a normal day, but when you're tired and frustrated, it'd nice to be able to ask someone else.