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

原文地址:https://www.cnblogs.com/nulige/p/9260848.html