首页 > 技术文章 > linux下查看某个文件属于哪个包
anxbai 2021-07-15 10:38 原文
1、centos/redhat下查看某个文件或命令属于哪个rpm包:
$ yum provides /etc/passwd 或者 $ rpm -qf /etc/passwd