• Re: RFC: "Recommended bloat", and how to possibly fix ito

    From Bill Allombert@21:1/5 to All on Wed Nov 6 20:20:01 2024
    Le Tue, Nov 05, 2024 at 05:35:59PM -0600, Aaron Rainbolt a écrit :
    Hello, and thanks for your time.

    I've been a Debian user and contributor for a while, and have noticed a rather frustrating issue that I'm interested in potentially
    contributing code to fix. The issue is what I call "Recommended bloat",
    which in short is what happens when you install a package with all of
    its recommended packages, and end up with a whole lot of stuff installed
    that you don't want and that the package you actually wanted probably
    didn't even need.

    A proposal I made was an option for apt to handle Recommends non
    recursively.
    That is if A Recommends B and B Recommends C,
    apt-get install A --no-transitive-recommends
    would install B but not C.

    Cheers,
    Bill.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Lynn@21:1/5 to Bill Allombert on Thu Nov 7 21:30:01 2024
    On 06/11/2024 19:20, Bill Allombert wrote:
    Le Tue, Nov 05, 2024 at 05:35:59PM -0600, Aaron Rainbolt a écrit :
    Hello, and thanks for your time.

    I've been a Debian user and contributor for a while, and have noticed a
    rather frustrating issue that I'm interested in potentially
    contributing code to fix. The issue is what I call "Recommended bloat",
    which in short is what happens when you install a package with all of
    its recommended packages, and end up with a whole lot of stuff installed
    that you don't want and that the package you actually wanted probably
    didn't even need.

    A proposal I made was an option for apt to handle Recommends non
    recursively.
    That is if A Recommends B and B Recommends C,
    apt-get install A --no-transitive-recommends
    would install B but not C.

    This, please!

    As a user, when I choose to install a package, I am likely to have a
    reasonable idea of what that package's recommendations do and whether I need them. However, for transitive recommendations, it is unlikely that I will
    know whether I need those packages. If they in turn have lots of further dependencies then I will probably not install them and take the risk of unwanted breakage to my system. If the top level package that I originally
    did want needs those transitive recommendations it should recommend them itself, rather than relying on recommendations further down the dependency chain.

    It would also be helpful if more package descriptions could explain why recommended and suggested packages are needed or helpful and what
    functionality they provide that would be lost if they were not installed.
    (Many already do this.)

    Thanks,

    Roger

    PS. I use aptitude, so I can interactively browse through the lists of recommendations, but it's still hard work and it can be a long list of very obscure packages. Do any of the GUI package managers show a graphical dependency tree? That might be really helpful to understand the package relationships and visualise the consequences of various actions.

    PPS. And the moon on a stick too, please!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Soren Stoutner@21:1/5 to All on Thu Nov 7 16:29:09 2024
    On Thursday, November 7, 2024 12:53:27 PM MST Roger Lynn wrote:
    On 06/11/2024 19:20, Bill Allombert wrote:
    Le Tue, Nov 05, 2024 at 05:35:59PM -0600, Aaron Rainbolt a écrit :
    Hello, and thanks for your time.

    I've been a Debian user and contributor for a while, and have noticed a
    rather frustrating issue that I'm interested in potentially
    contributing code to fix. The issue is what I call "Recommended bloat",
    which in short is what happens when you install a package with all of
    its recommended packages, and end up with a whole lot of stuff installed >> that you don't want and that the package you actually wanted probably
    didn't even need.

    A proposal I made was an option for apt to handle Recommends non recursively.
    That is if A Recommends B and B Recommends C,
    apt-get install A --no-transitive-recommends
    would install B but not C.

    This, please!


    I should have noted previously (I apologize for not doing so) that the objections I have voiced to some of the proposals do not apply to this proposal. If having this type of option would be helpful (and if the maintainers of apt don't have objections to someone implementing this) than I also do have any objections as it doesn't cause any extra work for package maintainers in general and it doesn't change the way Recommends works for people who chose not to use this argument.

    --
    Soren Stoutner
    soren@debian.org
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmctTUUACgkQwufLJ66w tgP74g/8CNepV3fhwhRPl7jR2zgst/OyBWkTGZxtCGblwbChDifBRy60nwyJfyzL w4IuEoLB9c6tEUhOQOdtBobfS2Q+qer8VkXYjGseK4HZcmQVXYRTrfkAYYbz0KCK RnFn7q6voFCFMiyXOh7HkQ9fh5En6/Ndo9Abe5w85G10t5t2Jp2a4qCXzigPQxnX G3HFTSNV4rJa+Qu7ZjShCJLHN7akx2yGe7WVB/srX1Sn//lrbDSh9mM7Vs1eoMQS OYDUDu6ROSR+RGPaMzhDJ0vs6P4NJqPnW5qLz5helfyrIZtp4YjVcbJYIyDNbOMf cO0Q1nOdFsAZKFXsK+01IheQNV8K6cmWogVwDRtPrZY49iWuwb2YVBaeSzkIZZLr PkgibBa7nmY4QIMKikT4WXMHUtEnWGg3SjZgwKJZfcz7PHDELAWt3PzwbNzSySkD QFBrrePeiBbHGmGC1g5H/BzF9H7fXdCp+c0wA1UFuZY+VDeuKA65Qh8vdIOLCdmL Ae+IgzMetBiY4ekeUyI4NHKd9r9Ip+uud0YSAFdT3TovHAEXTYtkW4AVy6YWodwT x1LtmhQ0FoJUJ+RgeYl3fVRKDb8VIFumlxorPHUgQZVUAO7FzvbOtwBr8sbwiB1r 99BklLKmGoGLoPv2iW6ctCgK45JA4ZkTHUhdoyY4vxA03yn/9no=
    =ylQ6
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Fay Stegerman@21:1/5 to All on Fri Nov 8 03:50:02 2024
    * Aaron Rainbolt <arraybolt3@gmail.com> [2024-11-08 00:21]:
    [...]
    However, this isn't that hard to rectify - rather than specifying the
    depth at which apt should stop installing recommends, one can specify
    the packages in the dependency tree from which apt should install
    recommends from. I.e., to replicate --no-transitive-recommends, one
    would do
    `sudo apt install package --only-install-recommends-from=package`
    (please someone pick a better name for this switch). If you're
    installing a complex metapackage network, you can just specify all the metapackages you want to allow recommends from, i.e.
    `sudo apt install metapackage --only-install-recommends-from=metapackage,submetapackage1,...`
    [...]

    I personally would consider a "apt install-recs", analogous to "apt build-dep", quite useful. That would require multiple steps instead of a single command, but allow installing the recommends for a specific package at any later time, which is also useful when they have changed over time or you change your mind about installing them.

    - Fay

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to All on Fri Nov 8 06:50:02 2024
    On Fri, 8 Nov 2024 03:47:05 +0100, Fay Stegerman <flx@obfusk.net>
    wrote:
    I personally would consider a "apt install-recs", analogous to "apt build-dep",
    quite useful. That would require multiple steps instead of a single command, >but allow installing the recommends for a specific package at any later time, >which is also useful when they have changed over time or you change your mind >about installing them.

    Agreed! And I would also love the possibility to directly paste a
    package list from apt show's output into apt install without having to
    remove the commas.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to All on Fri Nov 8 09:00:01 2024
    On Fri, Nov 08, 2024 at 08:20:46AM +0100, IOhannes m zmölnig wrote:
    Am 8. November 2024 06:42:25 MEZ schrieb Marc Haber <mh+debian-devel@zugschlus.de>:
    Agreed! And I would also love the possibility to directly paste a
    package list from apt show's output into apt install without having to >remove the commas.



    This!

    apt satisfy

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmctw2stFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh GxoP/RKpFaUqcFKKwf5YIdi0ML5f4yc00uOcqpBaawsPJi5AK1s9891HL960ZfxO CQjBR+KJO07WVd74zog3Ay5NvU/ToVZz3ZTeb2OppH2Rc0l7IocgUowmeYUifhZW 9PVmYh9RnXahYt43kUb3n8KUcduhm3UTe5VMynwezSFV9tJpHGgOvJkURcvwdQ+s qBzSd2JLlCZTL2i085XJj2znJfoy2t6YyAToLxxeMhxheqO3YlS77PJ8WDCLF2Iz nAY/ZaTd3t8zqSt8jtqG9VpxZ00Q78i5bsNwctEJse01CtOdRyVxLz4XXV4UDIy/ 7l9KUBhvAautLbqd9TQiTjpJhIu+dcIruKtgp9H+zOUCMc3LG6+0UVpSwpZ4rSH7 lw8ufoSFGPfp68IV1XbIp1SmnjPb+BcoRWeETV4r0b1N6HVW+rx5U1cuFfnzR2AH s6OyHlobtKynk+ckg59dkGqWyohU1jpGFta5MA0G2qOPOg8GUD8GWPrBVEbGKNFe 8s6YbKCZrqF0MMPA/lmVWqZHFE9/+jFv0wWFmgh2gA5JridkU5UiMxzB4F2XM2xh O7ikwlVjUthEFzqWcFFz6acGcO5edzAL/Y6X/6rvil9exaLVqc1r+/rl4wwdizfK +xNBLVOdUp7gzp92lcRKavKlSK5aEJsZou6c72BFHB7KavRp
    =0RpV
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?ISO-8859-1?Q?IOhannes_m_zm=F6lnig@21:1/5 to All on Fri Nov 8 08:40:01 2024
    Am 8. November 2024 06:42:25 MEZ schrieb Marc Haber <mh+debian-devel@zugschlus.de>:
    Agreed! And I would also love the possibility to directly paste a
    package list from apt show's output into apt install without having to
    remove the commas.



    This!


    mfh.her.fsr
    IOhannes

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marc Haber@21:1/5 to wrar@debian.org on Fri Nov 8 10:50:02 2024
    On Fri, 8 Nov 2024 12:53:15 +0500, Andrey Rakhmatullin
    <wrar@debian.org> wrote:
    On Fri, Nov 08, 2024 at 08:20:46AM +0100, IOhannes m zmölnig wrote:
    Am 8. November 2024 06:42:25 MEZ schrieb Marc Haber <mh+debian-devel@zugschlus.de>:
    Agreed! And I would also love the possibility to directly paste a
    package list from apt show's output into apt install without having to
    remove the commas.



    This!

    apt satisfy

    TIL. Thanks.

    Greetings
    Marc
    --
    ---------------------------------------------------------------------------- Marc Haber | " Questions are the | Mailadresse im Header Rhein-Neckar, DE | Beginning of Wisdom " |
    Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)