我可以编辑
/etc/apt/apt.conf
并添加以下行:
apt::install-recommends "false";
但这总是会跳过建议。
如何在不更改 apt 的配置的情况下仅对某个软件包进行一次安装?
答案1
从man 8 apt-get
:
--no-install-recommends
Do not consider recommended packages as a dependency for installing. Configuration Item: APT::Install-Recommends.