Enable a Repo the Ansible Way

Recently I need to install a package called Lmod on a Red Hat 8 server. Lmod is available from RHEL 8 EPEL8 repository, however it has a dependency called lua-filesystem which is only available from codeready-builder repository. On my RHEL 8 server, the codeready-builder repository is not enabled by default. Here is how I’ve got Lmod installed manually: # subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms # dnf install Lmod Looking at the above commands, I needed to enable the codeready-builder-for-rhel-8-x86_64-rpms first before installing Lmod....

April 24, 2021 · 2 min · 245 words · kenno

Install Lmod on Gentoo

Lmod is not available in Gentoo’s portage. This blog post will document how I got Lmod installed on my Gentoo machine. First requirement is to install lua. I picked lua 5.2 as I had problem when experimenting with Lua 5.1. To install lua-5.2.3 from portage, run: # emerge -av =dev-lang/lua-5.2.3 If you have multiple versions of Lua installed, make sure to select this lua 5.2.3 as the default version using eselect:...

February 19, 2019 · 3 min · 442 words · kenno