I've discussed this issue in #ubuntu-devel on IRC[1] and the feedback is
that recommends, by policy, are installed for a reason and overriding
that should not be part of the unminimize tool.  But for your use case
there is a solution that could meet your needs.  You can set the
following in /etc/apt/apt.conf.d/:

 APT::Install-Recommends "false";

By making this change your image will install without recommends for all
apt operations which would give the behavior you're intending for
unminimize and your software stack.  Leaving that set in the image which
you give to developers would have the effect that they would install new
packages in the way that you might intend to install them in your
builds.  You can verify your configuration with the command:

 $ apt-config dump | grep Install-Recommends
 APT::Install-Recommends "false";

Recommends are installed by default (since Lucid)[2] while 'suggests'
are not installed by default.  "Recommends" by debian policy[3][4] is
used to "declares a strong, but not absolute, dependency.  The
Recommends field should list packages that would be found together with
this one in all but unusual installations."

[1] https://irclogs.ubuntu.com/2021/01/21/%23ubuntu-devel.html
[2] https://askubuntu.com/a/18553
[3] https://unix.stackexchange.com/a/77076
[4] 
https://www.debian.org/doc/debian-policy/ch-relationships.html#binary-dependencies-depends-recommends-suggests-enhances-pre-depends

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1912595

Title:
  unminimize shoud run apt with -–no-install-recommends

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1912595/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to