CentOS, 找不到dump,和restore命令:command not found
rt,
which dump
找不到。
是没有安装吗?
运行环境vmware
------解决方案--------------------[root@RHEL6A Packages]# which dump
/usr/bin/which: no dump in (/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@RHEL6A Packages]# which restore
/usr/bin/which: no restore in (/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@RHEL6A Packages]# rpm -Uvh dump-0.4-0.5.b42.el6.i686.rpm
warning: dump-0.4-0.5.b42.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
rmt is needed by dump-1:0.4-0.5.b42.el6.i686
[root@RHEL6A Packages]# ls *rmt*
rmt-0.4-0.5.b42.el6.i686.rpm
[root@RHEL6A Packages]# rpm -Uvh rmt-0.4-0.5.b42.el6.i686.rpm
warning: rmt-0.4-0.5.b42.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:rmt ########################################### [100%]
[root@RHEL6A Packages]# rpm -Uvh dump-0.4-0.5.b42.el6.i686.rpm
warning: dump-0.4-0.5.b42.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:dump ########################################### [100%]
[root@RHEL6A Packages]# which dump
/sbin/dump
[root@RHEL6A Packages]# which restore
/sbin/restore
[root@RHEL6A Packages]#
------解决方案--------------------Python code
$ yum list|grep dump
dump.x86_64 0.4b41-4.el5 installed
tcpdump.x86_64 14:3.9.4-15.el5 installed
bluez-hcidump.x86_64 1.32-1 base
dump.x86_64 0.4b41-5.el5 base
system-config-kdump.noarch 1.0.14-4.el5 base
xfsdump.x86_64 2.2.46-1.el5.centos extras
$ yum list |grep rmt
rmt.x86_64 0.4b41-4.el5 installed
rmt.x86_64
$ yum -y install rmt dump