Here is the full story. I was trying to remove an rpm from my server and a typo meant that I accidently removed the rpm-4.2.3-10.i386.rpm RPM (ouch !!!). In an attempt to recover I have another server with Centor 3.4 so I copied the /bin/rpm script and /usr/lib/rpmrc script on to my knakered server (I thought the rpm had not changed between these two releases). I made the permission on /usr/lib/rpm the as those on the working server. The last resort is to re-install the server. But if someone can send me the /bin/rpm and /use/lib/rpmrc files then that may work am I right ? On Tuesday 18 Jan 2005 12:14 pm, Ryan Sweet wrote: > On Tue, 18 Jan 2005, JCT wrote: > > Hi All, > > > > I wonder if someone can help. My rpm db was corrupted. > > > > So I ran rm -f __db* followed rpm rebuild db which ran OK. But I keep > > getting the following error. > > > > error: cannot open Packages database in /var/lib/rpm > > warning: kernel-source-2.4.21-20.0.1.EL.i386.rpm: V3 DSA signature: > > NOKEY, key ID 025e513b > > error: cannot open Packages database in /var/lib/rpm > > that sounds like you don't have permission to read the rpm db. Are you > sure that you are running as root or that you didn't change the permissions > on /var/lib/rpm? > > -ryan -- Regards JC