yum 查看可安装yum包_如何找到可以为文件安装的软件包,例如“ yum includes”?...

yum 查看可安装yum包

How to find which package can be installed for a file, like “yum provides”?

如何找到可以为文件安装的软件包,例如“ yum includes”?

That is, the package is not installed yet and I do not know the package for a file that I want.

也就是说,该软件包尚未安装,并且我不知道我想要的文件的软件包。

The apt-file tool can do the similar things as yum provides.

apt-file工具可以执行yum provides

You may need to install it first by sudo aptitude install apt-file and update its database by sudo apt-file update.

您可能需要安装它首先由sudo aptitude install apt -file更新其数据库sudo apt-file update

Then, to find which package can provide a file like ghci:

然后,找到哪个包可以提供类似ghci的文件:

$ sudo apt-file search ghci
ghc: /usr/bin/ghci
ghc: /usr/bin/ghci-7.6.3
ghc: /usr/lib/ghc/bin/ghci
ghc: /usr/lib/ghc/bin/ghci-7.6.3
ghc: /usr/lib/ghc/ghci-usage.txt
ghc: /usr/share/man/man1/ghci-7.6.3.1.gz
ghc: /usr/share/man/man1/ghci.1.gz
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-commands.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-compiled.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-cygwin.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-debugger.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-dot-files.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-faq.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-invocation.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-obj.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-set.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci-windows.html
ghc-doc: /usr/share/doc/ghc-doc/html/users_guide/ghci.html
happy: /usr/share/doc/happy/html/sec-happy-ghci.html
hlint: /usr/share/hlint/hlint.ghci
makehuman-data: /usr/share/makehuman/data/targets/measure/measure-thighcirc-decrease.target
makehuman-data: /usr/share/makehuman/data/targets/measure/measure-thighcirc-increase.target
xemacs21-basesupport: /usr/share/xemacs21/xemacs-packages/lisp/haskell-mode/haskell-ghci.elc
xemacs21-basesupport-el: /usr/share/xemacs21/xemacs-packages/lisp/haskell-mode/haskell-ghci.el.gz

Check the apt-file manual for more details.

有关更多详细信息,请参阅apt-file手册

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-find-which-package-can-be-installed-for-a-file-like-yum-provides/

yum 查看可安装yum包

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值