Redhat – How to install lynx on an AWS redhat machine that can’t find the package

redhatyum

I'm trying to install lynx on an AWS Redhat machine using the following:

[ec2-user@ip-XX-XX-XX-XX ~]$ sudo yum install lynx                                    
Loaded plugins: amazon-id, rhui-lb
rhui-REGION-client-config-server-7                       | 2.9 kB     00:00
rhui-REGION-rhel-server-releases                         | 3.7 kB     00:00
rhui-REGION-rhel-server-rh-common                        | 3.8 kB     00:00
rhui-REGION-rhel-server-releases/7Server/x86_64/primary_db |  14 MB   00:00
rhui-REGION-rhel-server-releases/7Server/x86_64/updateinfo | 639 kB   00:00
No package lynx available.
Error: Nothing to do

My question is: How to install lynx on an AWS redhat machine that can't find the package?

Best Answer

You need to enable the optional channels. On AWS this is done in a different way:

yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional