How AlmaLinux stays Red Hat Enterprise Linux compatible without Red Hat code

It's not easy, but it can be done by pulling largely from the CentOS Stream codebase.

ZDNET