Install Docker:

1. Create a docker container running Alma Linux 8.5:

At the same time mount the local directory $(pwd)/cache to /var/cache/dnf on the container. This will save us a lot of time re-downloading packages if something were to go wrong with the process.

docker run …