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

DNF config-manager Plugin #405

Closed
3 tasks done
Tracked by #389
j-mracek opened this issue Mar 28, 2023 · 10 comments · Fixed by #907, #875 or #877
Closed
3 tasks done
Tracked by #389

DNF config-manager Plugin #405

j-mracek opened this issue Mar 28, 2023 · 10 comments · Fixed by #907, #875 or #877
Assignees
Labels
epic Priority: HIGH RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Milestone

Comments

@j-mracek
Copy link
Contributor

j-mracek commented Mar 28, 2023

Documentation if dnf4 command - https://dnf-plugins-core.readthedocs.io/en/latest/config_manager.html

I am proposing to not keep DNF4 compatibility, because the syntax was not the best one and we also have new requirements due to support of drop-in directories for configuration.

Additional inspiration for handling of drop-in configuration:
rpm-software-management/libdnf#1387
rpm-software-management/dnf#1414

@ptoscano
Copy link

* [ ]  Investigate options how to implement configuration overrides for repositories

* Implement mechanism to synchronize dnf and subscription-manager

I started a separate discussion about this, i.e. #422.

@inknos
Copy link
Collaborator

inknos commented Jun 20, 2023

Issues reported by the lack of config-manager plugin here https://bodhi.fedoraproject.org/updates/FEDORA-2023-69dfac15db#comment-3063374

@msrb
Copy link

msrb commented Jul 2, 2023

Fedora CI relies on the config-manager plugin as well:

Unknown argument "config-manager" for command "dnf5". Add "--help" for more information about the arguments.

@juhp
Copy link

juhp commented Jul 3, 2023

Currently I use dnf-3 config-manager as a workaround in the meantime.

@msrb
Copy link

msrb commented Jul 27, 2023

Thanks!

Is dnf-3 config-manager something we can expect to exist in Fedora 40+ (and later CentOS Stream, etc)? Or is it just a temporary workaround that might go away in the not so distant future?

@Andrei-Stepanov
Copy link

@j-mracek hello, could you please help us,

Configuration of repositories could be handled by a different command that for main repositories (under repo command)

I checked this command. It cannot modify the repo: enable/disable. This command can only show info.

Automation is very important. Could you please give any ideas on how we can enable disable repos in an automated way (from bash script)?

Thank you in advance.

@AdamWill
Copy link
Contributor

@Andrei-Stepanov it's not very pretty, but this is how I'm doing it in openQA:

sed -i -e "s,enabled=1,enabled=0,g" /etc/yum.repos.d/fedora-updates-testing.repo

replace with the appropriate repo file, of course.

@j-mracek
Copy link
Contributor Author

Thank you @AdamWill for a workaround.

@praiskup
Copy link
Member

Seems like closed by mistake; shouldn't #907 close this one?

@j-mracek
Copy link
Contributor Author

Thank you for notes

@j-mracek j-mracek reopened this Oct 10, 2023
@j-mracek j-mracek added the RFE Request For Enhancement (as opposed to a bug) label Oct 16, 2023
@mcurlej mcurlej added the epic label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Priority: HIGH RFE Request For Enhancement (as opposed to a bug) Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
Archived in project