Related to error no matching repo to modify powertools

Enable PowerTools Repository on Rocky Linux 8 - How to do it ?

This article covers how to enable PowerTools repository on Rocky Linux and any other Red Hat Linux systems. In fact, The PowerTools repository is a container that contains many packages, libraries, and developer tools for either creating from source or installing applications. Most repositories rely on the PowerTools to be enabled, including the most popular Extra packages for the Enterprise Linux repository.

How to Install EPEL Repositories on Rocky Linux 8 ?

You need to enable EPEL since while installing a package being provided by the PowerTools repos, there might be some dependencies required and provided by the EPEL:

$ dnf install epel-release