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

后端 未结 7 1004
攒了一身酷
攒了一身酷 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 <file>
    
    0 讨论(0)
提交回复
热议问题