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

Install optional in environment #1922

Open
dletai opened this issue Dec 4, 2024 · 2 comments
Open

Install optional in environment #1922

dletai opened this issue Dec 4, 2024 · 2 comments
Labels
bug Originally reported in Jira or Bugzilla Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@dletai
Copy link

dletai commented Dec 4, 2024

Currently, dnf environment info also provides optional groups, however the mechanism for installing environment groups is via

dnf install @environment-id

The issue here is that the install command doesn't accept the --with-optional flag, and while the group install command does have --with-optional, it doesn't recognize the @environment-id spec.

This result in there being no immediate mechanism for installing an environment group with its optionals.

I'd imagine the solution is either let dnf group install recognize @environment-id, let dnf install accept --with-optional or (best?) do both.

@ppisar
Copy link
Contributor

ppisar commented Dec 4, 2024

I think environments can be installed with "dnf5 group install" command. That means you can use --with-optional there.

At then end, removing the environments works with "dnf group". I don't fully understand why listing environments is handled by a special command and with with "dnf group". I will ask other DNF5 maintainers on their opinion.

I think we should improve the documentation.

@ppisar
Copy link
Contributor

ppisar commented Dec 5, 2024

Related issue #724.

A DNF5 developer who implemented the "dnf environment" command said that "dnf environment" should be enhanced with "install" subcommand, including "--with-optional" option.

@ppisar ppisar added Priority: MEDIUM bug Originally reported in Jira or Bugzilla Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Originally reported in Jira or Bugzilla Priority: MEDIUM Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
None yet
Development

No branches or pull requests

2 participants