features icon indicating copy to clipboard operation
features copied to clipboard

AlmaLinux:minimal uses "microdnf" installs fail due to lack of "yum" or "dnf".

Open jdputschadi opened this issue 1 year ago • 2 comments

The RedHat derivative Alma Linux, like Rocky Linux, installs the package curl-minimal, which clashes with attempts to install curl.

This prevents builds of the feature.

jdputschadi avatar Dec 06 '23 19:12 jdputschadi

Hi @jdputschadi , thank you for opening this issue.

To understand this issue better, could you please share more information about your devcontainer.json configuration and the error logs?

eljog avatar Dec 06 '23 22:12 eljog

Eljog:

The problem I'm having stems from using building off "almalinux:9-minimal" which, in addition to having "curl-minimal" installed uses microdnf, which needs further adjustments to "main.sh" in the devcontainer package.

When I build from almalinux:9, the current feature works ok. It does not install "curl" because it is NOT rocky linux 9.

My plan is to provide a PR soon (need some internal corporate stuff to get completed).

Perhaps I should change the subject to be "enhancemnts needed to support 'almalinux:minimal' images. I suspect these same enhancements would be needed for rockylinux and redhat/ubi[89]:minimal images too.

I've been working on updates to other features to support the redhat family (RHEL/Alma/Rocky) of OSes and have already had to incorporate the microdnf stuff. Quite willing to provide a PR for that here.

Jeff.

jdputschadi avatar Dec 07 '23 00:12 jdputschadi