linux中查找文件属于那个软件包的方法

 一、linux中查找文件属于那个软件包的方法

[root@salt prod]# whereis htpasswd
htpasswd: /usr/bin/htpasswd /usr/share/man/man1/htpasswd.1.gz


[root@salt prod]# rpm -qf /usr/bin/htpasswd
httpd-tools-2.4.6-80.el7.centos.x86_64

posted @ 2018-07-03 21:57  努力哥  阅读(2142)  评论(0编辑  收藏  举报