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

[Suggestion] Add support for microdnf in the distrobox-enter script for RHEL UBI Minimal support #254

Closed
MikuOcta opened this issue May 3, 2022 · 6 comments · Fixed by NixOS/nixpkgs#175302

Comments

@MikuOcta
Copy link

MikuOcta commented May 3, 2022

The RHEL UBI-minimal platform uses as a package manager microdnf rather than YUM or DNF. It would be nice for when the "distrobox-enter" command is used, to first install dnf or yum on the image, then install the other requiered packages for the missing dependencies.

Screenshot from 2022-05-03 21-03-06
distrobox-enter's errors with the RHEL UBI-minimal image

@89luca89
Copy link
Owner

89luca89 commented May 3, 2022

Hi @MikuOcta
Do you know of, or point to, a list of those minimal containers using microdnf? So I can test multiple environments

Thanks!

@MikuOcta
Copy link
Author

MikuOcta commented May 3, 2022

@89luca89 As I am aware, only minimal RHEL UBI Images (ubi8-minimal and ubi7-minimal) use microdnf. Let me point you to the information from the RedHat website

https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image

https://github.com/rpm-software-management/microdnf

Screenshot_20220503-215051_Samsung Internet.png

@MikuOcta
Copy link
Author

MikuOcta commented May 3, 2022

Also, microdnf (even if not installed by default) can be used on other RedHat-like platforms as well, such as Fedora or CentOS Stream

@89luca89
Copy link
Owner

89luca89 commented May 3, 2022

OK perfect!
Not a problem adding the pkg manager detection, just to check which package names I need
Hopefully it uses the same repos as normal yum/dnf

@MikuOcta
Copy link
Author

MikuOcta commented May 3, 2022

OK perfect! Not a problem adding the pkg manager detection, just to check which package names I need Hopefully it uses the same repos as normal yum/dnf

Yes it does. microdnf is just a simpler implementation of DNF for containers. Everything should work like DNF in terms of packages. And thanks for your time as well! 😊

@89luca89
Copy link
Owner

89luca89 commented May 3, 2022

Done! 👍

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 a pull request may close this issue.

2 participants