我如何知道需要安装哪些软件包?

不是任何特定的程序,一般来说,如果我想通过APT安装一些东西,我怎么知道我需要为该程序“apt-get install”的软件包

使用

$ apt-cache search   

在描述字段中搜索与这些术语匹配的包。 例如,假设您正在寻找在KDE中使用的PDF查看器,您可以这样做:

 $ apt-cache search pdf viewer kde okular - universal document viewer 

然后使用apt-cache show 显示更多详细信息:

 Description-en: universal document viewer Okular is a universal document viewer with support for advanced document features, such as annotations, forms, and embedded files. . This package provides the document viewer application, plus plugins for a wide variety of document formats such as: * PostScript (PS) * Portable Document Format (PDF) [...] 

或者,使用您喜欢的任何其他包管理工具。 例如:

  • 能力倾向 安装aptitude (终端中基于ncurses的半GUI)
  • 突触 安装synaptic (GUI)

它们都提供类似的搜索function,比apt-cache search更加用户友好。