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

[dnf5] Implement new arguments "--dump-main-config", "--dump-repo-config=REPO_ID,..." #877

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Sep 7, 2023

The DNF4 config-manager plugin supports the --dump argument. It prints the main configuration to standard output or, if followed by a list of repository IDs, prints the configuration of the matching repositories.

This implements part of the functionality of the dnf4 config-manager plugin, but for general use.

Related to: #405

@jrohel
Copy link
Contributor Author

jrohel commented Sep 13, 2023

Rebased

@jrohel
Copy link
Contributor Author

jrohel commented Sep 20, 2023

Rebased to resolve conflicts.

If dnf5 is run with this argument, the main configuration is printed
to standard output.

The old DNF4 supports the "--dump" argument, which also dumps the main
configuration (if used with no other arguments). But it only works with
the `config-manager` plugin. In DNF4, if the user wants to know
the configuration with which a certain command will run, he must first
use `config-manager` and then run the desired command with the same
settings (same environment and configuration files) and hope that
nothing has changed in between (e.g. thanks plugin).

This implements part of the functionality of the dnf4 config-manager plugin,
but for general use.
This argument supports a list of repository ids (globs are supported).
If dnf5 is run with this argument, the configuration of the matching
repositories will be printed to standard output.

The old DNF4 supports the "--dump" argument, which also dumps
the repositories configuration if a list of them follows.
But it only works with the `config-manager` plugin.

This implements part of the functionality of the dnf4 config-manager plugin,
but for general use.
@jrohel jrohel linked an issue Oct 3, 2023 that may be closed by this pull request
3 tasks
@m-blaha m-blaha added this pull request to the merge queue Oct 10, 2023
Merged via the queue into rpm-software-management:main with commit d156fde Oct 10, 2023
5 of 8 checks passed
@jrohel jrohel mentioned this pull request Nov 7, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

DNF config-manager Plugin
3 participants