I have found lynx to be a useful tool for quickly testing if a web site is up and running without having to start a web browser. I can ssh to a remote machine and then test the web site via lynx to make sure traffic is routing properly and/or firewall filters and/or apache settings for limiting access from selected ip addresses
Install DNF plugins package
Although it would already be installed on your Rocky system, however still run the below command to make sure it is there-
sudo dnf install dnf-plugins-core
If you are about to use PowerTools then I would recommend you to also enable EPEL because many time installing some software or building some package from its source code requires some dependencies that are available in EPEL, thus simply run-
sudo dnf -y install epel-release
Enable PowerTools repository on Rocky Linux 8
Now, finally, get PowerTools on your Rocky Linux/CentOS/AlmaLinux/RHEL 8 using the below-given command-
sudo dnf config-manager --set-enabled powertools
To flush the system cache and let it recognize the newly added repo of PowerTools, run once the update command before installing any package.
sudo dnf -y update
Get the tool we needed to start with!
sudo dnf -y install lynx