Skip to content

Use --no-install-recommends in dependencies install #145351

@KowalskiThomas

Description

@KowalskiThomas

Description

While looking into #145349, I realised posix-deps-apt.sh doesn't pass --no-install-recommends to apt install. As far as I know, there is no reason to install recommends in this context, so I think we should be able to skip them if they provide any kind of meaningful speedup.

I did some local testing (with Docker / ubuntu:24.04) running the same command with and without recommends, I got a significant speedup (from 51s down to 25s), as well as reduced disk usage (966MB to 812MB) and package count, but those two probably don't matter much anyway.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    infraCI, GitHub Actions, buildbots, Dependabot, etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions