How do I find which rpm package supplies a file I'm looking for?

后端 未结 7 1027
攒了一身酷
攒了一身酷 2020-12-04 05:11

As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would i

7条回答
  •  醉酒成梦
    2020-12-04 06:10

    The most popular answer is incomplete:

    Since this search will generally be performed only for files from installed packages, yum whatprovides is made blisteringly fast by disabling all external repos (the implicit "installed" repo can't be disabled).

    yum --disablerepo=* whatprovides 
    

提交回复
热议问题