推荐和建议的软件包有什么区别 (Ubuntu)

Pet*_*mit 32 package-management aptitude ubuntu

在 Ubuntu 上安装软件包时,可能会有依赖项、建议和建议。例如:virtualbox-ose有 adduser 作为依赖,libgl1 作为推荐,libpulse0 作为建议。

建议和建议有什么区别?

建议是随 apt 标准安装的。这可以使用开关 --no-install-recommends 来防止

第二个问题:如何强制使用apt安装建议?

Sim*_*men 27

请参阅Debian对此的常见问题解答。Ubuntu 是基于 Debian 的,所以应该是一样的:

  • 套餐 A推荐套餐 B,如果套餐维护者判断大多数用户在没有 B 提供的功能的情况下不会想要 A。
  • 如果 B 包含与 A 的功能相关(并且通常增强)A 的功能的文件,则包 A建议包 B。


Kai*_*Kai 5

虽然这是一个非常古老的问题,但我想在这里写一个答案,因为有一次我搜索了同样的问题并通过谷歌到达这里。

来自man deb-controlhttps://linux.die.net/man/5/deb-control,它解释了它们的含义:

Recommends: <package list>
Lists packages that would be found together with this one in all but unusual
installations. The package maintenance software will warn the user if they
install a package without those listed in its Recommends field.

Suggests: <package list>
Lists packages that are related to this one and can perhaps enhance its
usefulness, but without which installing this package is perfectly reasonable.
Run Code Online (Sandbox Code Playgroud)

--install-suggests它现在提供了一个apt-get安装建议包的选项。它可以传递给apt.