我的rpm命令不能用,请高手帮忙
我的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 你用rpm -q rpm-devel看看有没有装。 # rpm -q rpm-devel
package rpm-devel is not installed
# 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
看来是装不上。请问如何解决? 你需要找7.1的光盘里的相应的rpm包,
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
是说你要先装popt和glibc包
页:
[1]