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

Add fix for package running dnf5 on fedora (alternative) #9536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

larhauga
Copy link

@larhauga larhauga commented Dec 27, 2024

Hi,
on fedora 41 we experience the following errors due to the new dnf version, dnf5 (https://docs.fedoraproject.org/en-US/fedora/latest/release-notes/sysadmin/#dnf-5).

Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install XX' returned 2: Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments.

The flags '-d' and '-e' have as a workaround been removed for newer versions of fedora.

This fixes #9506

This is an alternative approache as suggested in #9520. This will break old systems that require the usage of the flags.

Fedora 41 introduced dnf5 which has deprecated the use of the flags '-d'
and '-e'. This change removes the options

Signed-off-by: Lars Haugan <[email protected]>
@larhauga larhauga requested a review from a team as a code owner December 27, 2024 06:31
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@larhauga larhauga changed the title Add fix for package running dnf5 on fedora Add fix for package running dnf5 on fedora (alternative) Jan 2, 2025
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

Successfully merging this pull request may close these issues.

puppet agent not working with dnf5
2 participants