Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Do not install recommended packages #19

Open
OrangeDog opened this issue Jul 14, 2021 · 2 comments
Open

[FEATURE] Do not install recommended packages #19

OrangeDog opened this issue Jul 14, 2021 · 2 comments

Comments

@OrangeDog
Copy link

Is your feature request related to a problem?

The Debian exim package recommends packages that are probably not needed, especially for the "light" installation.

Describe the solution you'd like

Add - install_recommends: False to pkg.installed, to avoid pulling in things like python2.7 and mysql-common.

Describe alternatives you've considered

Extend the state in my own sls in order to add it.

@javierbertoli
Copy link
Member

@OrangeDog, I'm not completely sure that this solution belongs in the formula, as installing recommended packages or not is a decision of the package installer (apt/apt-get in Debian's family case).

I personally manage this option globally using the apt-formula, with a pillar like this one

apt:
  apt_conf_d:
    99salt:
      'APT::Install-Recommends': 'false'
      'APT::Install-Suggests': 'false'

Would this alternative solution work for you?

@OrangeDog
Copy link
Author

But that does it globally, instead of for this specific package. The pkg state is the only place to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants