[关闭]
@Tessedar 2016-05-25T13:48:18.000000Z 字数 426 阅读 872

Ubuntu apt-file:解决依赖的利器

Ubuntu使用


安装apt-file:

$ sudo apt-get install apt-file

安装过程提示信息末端提示要更新 apt-file 的 Cache。以普通用户更新 Cache即可:

$ apt-file update

之后就可以使用它来查找一些文件以及程序所处的包名了。

举例:

$ apt-file search 'multirow.sty'

结果显示为:

texlive-lang-arabic: /usr/share/texlive/texmf-dist/tex/lualatex/simurgh/simurgh-algorithm.sty
texlive-science: /usr/share/texlive/texmf-dist/tex/latex/algorithms/algorithm.sty

显然,应该选择安装第二个:

$ sudo apt-get install texlive-science

更详细的帮助,使用 man 查看。

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注