Comments (3)
Also, what dnf config-manager --setopt=proxy=example.com test
(i.e. --set-opt
without --save
) do?
from dnf-plugins-core.
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.
I am closing this. Improving the documentation should be handled in the linked follow-up ticket.
from dnf-plugins-core.
Related Issues (18)
- Error triggered when multiple Copr repositories are specified HOT 2
- `dnf copr enable` doesn't work on Fedora Rawhide HOT 2
- DNF version lock for kernel version HOT 1
- No local plugin on rhel HOT 3
- config-manager --add-repo HOT 1
- Will these plugins be rewritten to C for DNF5? HOT 9
- Flag --poweroff does not poweroff my F38 system after a successful upgrade HOT 1
- Improve dnf config-manager --setopt documentation
- `generate_completion_cache` does not respect `--setopt=cachedir` HOT 5
- Please provide better explanation of "trigger file does not exist. exiting quietly." error message HOT 1
- [Bug/Feature?]`download` doesn't support `--skip-broken` HOT 4
- Deprecate needs-restarting
- Caching local plugin repo data prevents use of locally stored packages when used in back to back updates HOT 5
- Failed loading plugin "debuginfo-install": module 'dnf' has no attribute 'cli' HOT 1
- RFE: please provide `dnf-builddep --{with|without} <foo>` option
- copr plugin: _guess_chroot does not handle centos stream properly HOT 1
- `dnf offline-upgrade --poweroff reboot` causes a post-upgrade reboot instead of the intended shutdown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnf-plugins-core.