我想知道这些内核之间有什么区别?
linux-virtual
linux-image-extra-virtual
linux-image-virtual
答案1
您可以使用 apt-cache 进行调查:
$ apt-cache show linux-virtual
除其他外,还提供:
Depends: linux-image-virtual (= 3.16.0.25.26), linux-headers-virtual (= 3.16.0.25.26)
Description-en: Minimal Generic Linux kernel and headers
This package will always depend on linux-image-virtual and
linux-headers-virtual.
从 Depends 行来看,linux-virtual 被用作元包安装 linux-image-virtual 和 linux-header-virtual。
$ apt-cache show linux-image-virtual
给出:
Depends: linux-image-3.16.0-23-generic
Description-en: This package will always depend on the latest minimal generic kernel image.
This package will always depend on the latest minimal generic kernel image
used for virtual instances.
跑步:
$ apt-cache show linux-image-extra-virtual
给出:
Depends: linux-image-generic (= 3.16.0.23.24)
Description-en: Transitional package.
This package will always depend on linux-image-generic.
Depends 行中有一个细微的差别。您可以使用上述命令看到相同的内容:
$ apt-cache show linux-image-generic
列出这些依赖项:
Depends: linux-image-3.16.0-23-generic, linux-image-extra-3.16.0-23-generic, linux-firmware, thermald
本质上,linux-image-generic 在 linux-image-extra-VERSION-generic 之上添加了额外的依赖项。看一下这个答案更多细节。
总结一下:
- linux-virtual 安装 linux-image-virtual 和 linux-headers-virtual
- linux-image-virtual 与 linux-image-VERSION-generic 相同
- linux-image-extra-virtual 是 linux-image-virtual 的超集,与 linux-image-generic 相同