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 - Unknown argument "--add-repo" #1537

Closed
jakub-vavra-cz opened this issue Jun 7, 2024 · 2 comments
Closed

dnf config-manager - Unknown argument "--add-repo" #1537

jakub-vavra-cz opened this issue Jun 7, 2024 · 2 comments

Comments

@jakub-vavra-cz
Copy link

The original command no longer works breaking backward compatibility in scripts.
Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments.

@jan-kolarik
Copy link
Member

Hi, as described in the #405, this is actually an intended change. The config-manager API was reshaped and aligned with the other commands, therefore this is a backwards incompatible change.

I am closing the ticket. Users can either use the existing API using the dnf-3 config-manager command provided by the python3-dnf and dnf-plugins-core packages or migrate to the new dnf5 one.

@jakub-vavra-cz
Copy link
Author

Well, users and their scripts would expect this to work without specifying dnf-3.
If You insist on being backward incompatible, then leave dnf as a symlink to dnf-3 and let users use new syntax by invoking dnf5 explicitly.

We are using same scripts across various rhels, centos and fedoras and expect the code to work without branching everything for each of them. Unfortunately ansible core does not provide wrapper around dnf config-manager with addrepo functionality so we can not just use ansible to handle the differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants