Putorius
Miscellaneous

Moreutils - An Extension of GNU Core Utilities

As you may know, I am a huge proponent of the GNU Core Utilities. I believe the tools included are required learning for any new Linux admin. Although it offers important everyday commands such as touch, head, basename, tail and many more, it cannot provide a tool for everything. This is where moreutils comes in. It provides some additional utilities that every Linux Admin or DevOps Engineer could use. In this article we will show you how to install the moreutils package and give a brief description of it's packages.

How to Install the moreutils Package

The moreutils package is available on almost all Linux systems. It is even provided by default on a few. In the section below we will describe how to install it on your system.

Install moreutils on Fedora

Fedora (and other rpm based distros) usually have the moreutils package in their default repositories. You can simply use DNF to install it like so:

sudo dnf install moreutils

Install moreutils on Ubuntu, Debian, Mint, etc.

Ubuntu, Debian, and Mint offer it in their default repositories as well. Just update your repositories and install the package via apt-get, like so:

sudo apt-get update
sudo apt-get install moreutils

Install moreutils on Red Hat or CentOS

Red Hat and CentOS do not provide the moreutils package by default. Furthermore, it is not available in their default repositories. Don't fret, it's a simple fix. Simply enable the EPEL (Extra Packages for Enterprise Linux) repository and then run the install. Here are the steps to install moreutils on Red Hat or CentOS.

sudo yum install epel-release
sudo yum install moreutils

Utilities Included in moreutils

Below is a list of utilities included in the moreutils package. Some Linux distributions do not include all the utilities in their package. So you may or may not have all of the commands listed below.

Leave a comment below if your package does not include all of the utilities above. Maybe we can find a workaround.

Resources and Further Reading

Exit mobile version