Emacs 元包和 Emacs 的区别

Ame*_*ina 3 software-center emacs

我启用了以下来源:主要、宇宙、受限和多元宇宙。在 11.10 的 Ubuntu 软件中心,我看到两个 Emacs 包:

元包版本和非元包版本有什么区别?

顺便说一下,这个线程可用的各种版本的 Emacs 之间有什么区别?还解释了两个 Emacs 版本之间的区别:EmacsEmacs-snapshot,有趣的是我现在在我的 Ubuntu 软件中心看不到这些包。

enz*_*tib 5

从说明中可以看出。

对于emacs,元包,我们有

Description-en: The GNU Emacs editor (metapackage)
 GNU Emacs is the extensible self-documenting text editor.
 This is a metapackage which will always depend on the latest Emacs
 release.
Run Code Online (Sandbox Code Playgroud)

而对于另一个我们有

Description-en: The GNU Emacs editor
 GNU Emacs is the extensible self-documenting text editor.
 This package contains a version of Emacs with a Lucid user interface.
Run Code Online (Sandbox Code Playgroud)

所以你应该安装第一个,它应该自动引入当前版本的 emacs 作为依赖项。

更新

元包是一个包,它本身不提供应用程序的文件,但它的存在只是因为它的依赖关系。安装它时,也会安装依赖项(元包也有其他特性,但在这里就足够了)。

如果你运行apt-cache show emacs | grep Depends,你会得到以下输出:

Depends: emacs23 | emacs23-lucid | emacs23-nox
Run Code Online (Sandbox Code Playgroud)

这意味着当您安装 时emacs,它需要这三个软件包之一。包管理器如何选择安装哪一个,我不知道。