Thursday, March 17, 2022

[SOLVED] Installing moreutils on EC2 instance

Issue

How do I install moreutils on the default image Amazon EC2 instance? The instances are built off of CentOS but presumably have their own packages repo since

sudo yum install moreutils

fails with

No package moreutils available.

What is the yum repo I need to install moreutils?


Solution

The epel repo is on the default Amazon server but in not enabled by default. You can use it as follows:

sudo yum --enablerepo epel install moreutils

Note that epel has a very old version of moreutils (0.40 when 0.61 is out), which does not include chronic.



Answered By - Zags
Answer Checked By - Senaida (WPSolving Volunteer)