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

Update dnf installation to be compatible with microdnf #324

Merged

Conversation

gabriel-ss
Copy link
Contributor

Addresses #322.

Currently, the script uses dnf config-manager to add crystal repo on dnf based systems. The problem with this approach is that config-manager is a plugin for the python implementation of dnf that will eventually be replaced by the new microdnf implementation. Some systems targeted at leaner installations only include microdnf, which is not compatible with the full dnf plugins, making them incompatible with the current strategy.

This PR updates repository installation to manually create a repo file under /etc/yum.repos.d on dnf systems, just like what is currently done for yum based systems. This change not only enables the script to work with microdnf, but also reduces the number of dependencies installed on full dnf as a side-effect.

Tested on Fedora 37, 40 and rawhide containers for regressions.

@gabriel-ss gabriel-ss mentioned this pull request Aug 6, 2024
@straight-shoota straight-shoota merged commit b1e2331 into crystal-lang:master Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants