rpm -qf /bin/ls
查看rpm包安装路经;
rpm -ql rpm_name
例:
# which dstat
/usr/bin/dstat
# rpm -qf /usr/bin/dstat
dstat-0.6.6-3.el5_4.1
# rpm -ql dstat
/usr/bin/dstat
/usr/share/doc/dstat-0.6.6
/usr/share/doc/dstat-0.6.6/AUTHORS
/usr/share/doc/dstat-0.6.6/COPYING
/usr/share/doc/dstat-0.6.6/ChangeLog
/usr/share/doc/dstat-0.6.6/README
/usr/share/doc/dstat-0.6.6/TODO
....................