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

Commits on Sep 22, 2023

  1. [dnf5] Implement new argument "--dump-main-config"

    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.
    jrohel committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    bb138cf View commit details
    Browse the repository at this point in the history
  2. [dnf5] Implement new argument "--dump-repo-config"

    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 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    c68bfed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce66240 View commit details
    Browse the repository at this point in the history