rex command not found

In this troubleshooting guide we learn how to fix rex command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rex: command not found

or when using sudo you get the following error message

sudo: rex: command not found

Solutions to rex: command not found

How To Fix rex: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rex is provided by rex package.

rex is:

Rex is a tool to ease the execution of commands on multiple remote servers. You can define small tasks, chain tasks to batches, link them with servers or server groups, and execute them easily in your terminal.

To fix this problem, we can install more using the command below.

sudo apt-get -y install rex

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install rex.

sudo apt -y install rex

Or if you have aptitude installed you can use the following command.

sudo aptitude install rex

Summary

In this tutorial we learn how to fix rex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.