rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install the_silver_searcher
参考
https://aws.amazon.com/jp/premiumsupport/knowledge-center/ec2-enable-epel/ だけど、Amazon Linux 2 は "Amazon Linux - the EPEL rpm package is already downloaded on Amazon Linux." ではないよね。