我的rpm命令不能用,请高手帮忙,版本是redhat 7.1,我用rpm命令时,rpm -ivh cy*.rpm时,提示说找不到/var/lib/rpm,我在这个目录下去看了一下,确实是没有rpm这个目录,请问高手看我说的这个现象如何才能解决好使rpm能够正常使用。
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
[root@UT 2008]# rpm -q rpm-devel
package rpm-devel is not installed
[root@UT 2008]# rpm -ivh rpm-devel*.rpm
error: failed dependencies:
rpm = 4.0.2 is needed by rpm-devel-4.0.2-8
popt is needed by rpm-devel-4.0.2-8
/sbin/ldconfig is needed by rpm-devel-4.0.2-8
/sbin/ldconfig is needed by rpm-devel-4.0.2-8