简体   繁体   中英

Installing moreutils on EC2 instance

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?

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 .

For update amazon linux, you can run following commands

sudo amazon-linux-extras install epel
sudo yum install moreutils

The EPEL repository has it, and other things. It works with Amazon Linux as well as CentOS, Fedora etc. (see http://fedoraproject.org/wiki/EPEL ). To install the config that enables that repo, yum install epel-release .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM