Giter VIP home page Giter VIP logo

Comments (3)

korpe1 avatar korpe1 commented on August 16, 2024

Also, what dnf config-manager --setopt=proxy=example.com test (i.e. --set-opt without --save) do?

from dnf-plugins-core.

jan-kolarik avatar jan-kolarik commented on August 16, 2024

Hello, @korpe1.

What is the difference between dnf config-manager --save --setopt=test.proxy=example.com and dnf config-manager --save --setop=proxy=example.com test?

In this use case, I believe the behavior of both commands is the same. However, if you were to use an additional option, such as --set-enabled, the provided <section> argument would be passed to this option, resulting in a different behavior.

If " If not specified, the program will select the main section and each repoid used within any --setopt options. A repoid can be specified using globs." is true, does dnf config-manager --save --setopt=*.proxy=http://proxy.example.com:3128/ will change repo1, repo2 and main confs?

Hmm, I believe the documentation could be enhanced in this regard. Generally, it appears that mixing the repoid selector in the --setopt option with an explicit list of sections is not a good idea. The explicit list of sections (repos) takes precedence over the repoid selector. The main section is written only if no repoid in --setopt is used and the explicit section list contains the main section or is empty.

Therefore, your example modifies only repo1 and repo2.

Also, what dnf config-manager --setopt=proxy=example.com test (i.e. --set-opt without --save) do?

As the --setopt is a global option intended for setting temporary runtime configurations, the --save option was introduced to make these changes permanent without altering the global behavior by the config-manager plugin.

In your specific use case, setting proxy=example.com using --setopt without --save applies only for the duration of the config-manager command's runtime which is useless there. But, it can be useful, for instance, when inspecting the entire configuration before making permanent changes. You can achieve this by using a command like: dnf config-manager --setopt=zchunk=0 --dump.

from dnf-plugins-core.

jan-kolarik avatar jan-kolarik commented on August 16, 2024

I am closing this. Improving the documentation should be handled in the linked follow-up ticket.

from dnf-plugins-core.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.