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

Fedora/CentOS8: Ensure yum-utils/dnf-utils are present #159

Merged
merged 6 commits into from
Jan 30, 2020

Conversation

KeithWard
Copy link

Pull Request (PR) description

This PR will ensure that yum-utils gets installed on CentOS as unfortunately even on CentOS 8 this is still provided by yum-utils.

This Pull Request (PR) fixes the following issues

Fixes #158

Unfortuntely although CentOS 8 uses dnf, dnf-utils is actually provided
by yum-utils.

https://centos.pkgs.org/8/centos-baseos-x86_64/yum-utils-4.0.8-3.el8.noarch.rpm.html

I've also fixed up the test a bit so that it checks to make sure
yum-utils is actually installed on other OS versions.
@KeithWard
Copy link
Author

For reference it looks like this changed in 8.1 - unsure of the reasoning:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/considerations_in_adopting_rhel_8/index

Copy link

@rcalixte rcalixte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 8.yaml files can be deleted. The else conditional needs to remain outside of the case statement to account for other conditions.

@KeithWard
Copy link
Author

@rcalixte I've removed match for all of the RHEL derived Dists and moved the else conditional down to catch them just leaving the exception for fedora, seeing as that's the only one that's actually different now.

@bastelfreak bastelfreak changed the title Centos 8 dnf yum Fedora/CentOS8: Ensure yum-utils/dnf-utils are present Jan 30, 2020
@bastelfreak bastelfreak added the bug Something isn't working label Jan 30, 2020
@bastelfreak
Copy link
Member

Thanks for the fix!

@bastelfreak bastelfreak merged commit 4b60617 into voxpupuli:master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CentOS/RHEL 8 Uses DNF but utils package is provided by yum-utils.
3 participants