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] config-manager plugin #907

Merged
merged 3 commits into from
Nov 13, 2023

Commits on Nov 6, 2023

  1. [dnf5 plugin] config-manager

    Manage libdnf5 configuration.
    
    Subcommands:
    addrepo      Add repositories from the specified configuration file
                 or create a new repository using user options
    setopt       Set configuration and repositories options
    unsetopt     Uset/remove configuration and repositories options
    setvar       Set variables
    unsetvar     Unset/remove variables
    
    Note:
    Main configuration:
    libdnf5 reads the distribution configuration from the drop-in directory
    ("/usr/share/dnf5/libdnf.conf.d") and system configuration from drop-in
    directory ("/etc/dnf/libdnf5.conf.d"). Last, it loads the system
    configuration file (by default "/etc/dnf/dnf.conf"). The latter has
    the highest priority and is modified by config-manager.
    
    Repository configuration:
    Libdnf5 loads the repositories configuration and then loads the configuration
    overrides. Configuration overrides are stored in files in
    the "/usr/share/dnf5/repos.override.d" and "/etc/dnf/repos.override.d"
    directories. The files are sorted alphabetically. The override from the next
    file overrides the previous one - the last override value wins.
    The config-manager writes the repositories configuration changes to the file
    "/etc/dnf/repos.override.d/99-config-manager.repo".
    jrohel committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    36fff92 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. [dnf5 plugin] config-manager: Support for creating missing directories

    New option:
    --create-missing-dir - Allow to create missing directories
    
    Without this option, an exception is thrown if the directory is missing.
    jrohel committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    b1d80cb View commit details
    Browse the repository at this point in the history
  2. [dnf5 plugin] config-manager: Support "--add-or-replace" in "addrepo"

    What happens when the destination repository configuration file already
    exists?
    By default throw an error.
    
    --overwrite  - Allow overwriting of existing repository configuration file
    
    --add-or-replace - Allow adding or replacing a repository in the existing
                       configuration file
    jrohel committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    afc920d View commit details
    Browse the repository at this point in the history