Bug#809926: /usr/bin/apt-get: --install-recommends appears to be a no-op
Control: severity -1 wishlist
Control: retitle -1 apt: please allow install recommends for installed packages
On Tue, Jan 05, 2016 at 03:28:54AM +0530, Faheem Mitha wrote:
> Package: apt
> Version: 1.0.9.8.1
> Severity: normal
> File: /usr/bin/apt-get
>
> Dear Maintainer,
>
> Consider:
>
> apt-get install gnumeric
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer required:
> guile-1.8 guile-1.8-libs libappconfig-perl lilypond-doc lilypond-doc-html lilypond-doc-pdf pfb2t1c2pfb ps2eps pxlib1 texmacs-common
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
> gnumeric-doc
> Suggested packages:
> gnumeric-plugins-extra
> The following NEW packages will be installed:
> gnumeric gnumeric-doc
> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
> Need to get 11.3 MB/13.6 MB of archives.
> After this operation, 21.6 MB of additional disk space will be used.
> Do you want to continue? [Y/n]
>
> But let's install without the recommended gnumeric-doc.
>
> apt-get install --no-install-recommends gnumeric
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer required:
> guile-1.8 guile-1.8-libs libappconfig-perl lilypond-doc lilypond-doc-html lilypond-doc-pdf pfb2t1c2pfb ps2eps pxlib1 texmacs-common
> Use 'apt-get autoremove' to remove them.
> Suggested packages:
> gnumeric-plugins-extra
> Recommended packages:
> gnumeric-doc
> The following NEW packages will be installed:
> gnumeric
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/2,315 kB of archives.
> After this operation, 7,803 kB of additional disk space will be used.
> Preconfiguring packages ...
> Selecting previously unselected package gnumeric.
> (Reading database ... 515181 files and directories currently installed.)
> Preparing to unpack .../gnumeric_1.12.18-2_amd64.deb ...
> Unpacking gnumeric (1.12.18-2) ...
> Processing triggers for mime-support (3.58) ...
> Processing triggers for menu (2.1.47) ...
> Processing triggers for man-db (2.7.0.2-5) ...
> Processing triggers for desktop-file-utils (0.22-1) ...
> Setting up gnumeric (1.12.18-2) ...
> Processing triggers for menu (2.1.47) ...
> Processing triggers for libc-bin (2.19-18+deb8u1) ...
>
> But reinstalling doesn't bring in the recommended gnumeric-doc.
>
> apt-get install --reinstall gnumeric
>
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer required:
> guile-1.8 guile-1.8-libs libappconfig-perl lilypond-doc lilypond-doc-html lilypond-doc-pdf pfb2t1c2pfb ps2eps pxlib1 texmacs-common
> Use 'apt-get autoremove' to remove them.
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
> Need to get 0 B/2,315 kB of archives.
> After this operation, 0 B of additional disk space will be used.
> Preconfiguring packages ...
> (Reading database ... 515475 files and directories currently installed.)
> Preparing to unpack .../gnumeric_1.12.18-2_amd64.deb ...
> Unpacking gnumeric (1.12.18-2) over (1.12.18-2) ...
> Processing triggers for mime-support (3.58) ...
> Processing triggers for menu (2.1.47) ...
> Processing triggers for man-db (2.7.0.2-5) ...
> Processing triggers for desktop-file-utils (0.22-1) ...
> Setting up gnumeric (1.12.18-2) ...
> Processing triggers for menu (2.1.47) ...
> Processing triggers for libc-bin (2.19-18+deb8u1) ...
That is correct, we only install new recommends for installed
packages.
>
> Nor does using the --install-recommends flag, which isn't documented
> in the man page.
It's just turns of --no-install-recommends - it's there for people
who have recommends turned off by default.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.
Reply to: