LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   my rpm command no longer works (https://www.linuxquestions.org/questions/linux-general-1/my-rpm-command-no-longer-works-461646/)

Niceman2005 07-06-2006 08:15 PM

my rpm command no longer works
 
Dear friends,

Got a weird problem with rpm command on my rhel3 server.
I happened quite suddenly. the problem now is, whenever I do anything realted to with rpm command it doesnt work.

say if I rpm -Uvh clamadxxxx.rpm

it will inform me that this and that dependencies , this and that files missing etc. But its not supposed to be..coz I am sure I don't have all those depended files in the machine and I never uninstall those files. I have done those similar rpm installation of the clamd softwares before, never have such problem with the dependencies, I was just doin exqctly the same reinstalltion but it gave me such dependencies problem.

So, then I cannot rpm -Uvh. But then when I try rpm -q something, it gives me no result. When I do rpm -qa | grep xxx, it also feeds nothing back. I tried to rpm -q all the programs I am sure I had installed with rpm b4, but it feeds nothing back. I have installed squid.rpm in that machine b4, so i did rpm -q squid but it says nothing.

Sure now I am pretty sure something is wrong with my rpm command, but how to fix it?
I need that rpm command to upgrade my clamd in future or to do other rpm installations....

pls help me...have anyone met this problem before? its weird...just came out of the blue...

thanks for taking time reading my thread..

Regards
Y

Brian1 07-06-2006 08:37 PM

Sounds like the rpm database is corrupt. Check these links for help to rebuilding.
http://www.informatimago.com/linux/rpm-rebuilddb.html
http://sourceforge.net/project/showf...group_id=57523

Brian1

Niceman2005 07-06-2006 10:17 PM

Hi Brain,

I visited the site you gave me. The sourceforget thing is an rpm too. the problem is that whenever I have the command rpm , it doesn work. below are few exmaples I tried to do rpm related commands:

# rpm -q squid
package squid is not installed
[root@cctt root]# rpm -qa | grep squid
(returns nothing)

[root@cctt root]# rpm -e squid
error: package squid is not installed
(returns this error but actually squid is installed)

[root@cctt root]# rpm --rebuilddb
[root@cctt root]#
(returns nothing)

Then if I try to install something say webmin:

# rpm -Uvh webmin-1.160-1.noarch.rpm
warning: webmin-1.160-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 11f63c51
error: Failed dependencies:
/bin/sh is needed by webmin-1.160-1
/usr/bin/perl is needed by webmin-1.160-1
Suggested resolutions:
bash-2.05b-29.i386.rpm
perl-5.8.0-88.4.i386.rpm

As for those dependencies, I am very sure it wasn't there before, and sure those rpms have been there i never delete it.

If I install other rpms also give me same dependencies. headache....

Brian1 07-07-2006 06:31 PM

Boot up with the fc2 rescue cd to use the RPM comand on it.

Brian1


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