Bug 2216848
| Summary: | salt-minion pkg.* tasks fail if only dnf5 is present, not dnf | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gwyn Ciesla <gwync> |
| Component: | salt | Assignee: | Kirill Ponomarev <kp> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | derek, dmurphy, gwync, kp, rcallicotte |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-24 17:34:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Thank you very much for the report. The option `--allowerasing` is implemented, but it is defined under command not as general option. `dnf5 install --allowerasing acpi` works but `dnf5 --allowerasing install acpi` does not. The change is driven by not allowing options for command where they have no effect (dnf repoquery --allowerasing). Do you have any suggestion what would be the best place how to document the change? My suggestion would be to document the change in https://dnf5.readthedocs.io/en/latest/changes.html. That makes sense to me. Have a Salt issue addressing this https://github.com/saltstack/salt/issues/64532 Fix for https://github.com/saltstack/salt/issues/64532 merged into the Salt master branch Thank you! |
Starting with Fedora 39, dnf is obsoleted by dnf5. The command line options are different, so a simple symlink won't work. ID: install_fedora_packages Function: pkg.installed Result: False Comment: Error occurred installing package(s). Additional info follows: errors: - Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments. Started: 19:45:43.710036 Duration: 1480.451 ms Changes: Reproducible: Always