foremancli command not found

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

Introduction

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

foremancli: command not found

or when using sudo you get the following error message

sudo: foremancli: command not found

Solutions to foremancli: command not found

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

In Ubuntu foremancli is provided by foremancli package.

foremancli is:

This is a commandline tool for searching node information stored in a Foreman server.

foremancli can be used to search and access all the stored information in a Foreman server and present the data in text, json or yaml formats.

Foreman is a server application that can be used to provision bare metal, virtual and cloud servers, and integrates with the Puppet configuration management system to provide full life cycle managements of one’s server infrastructure.

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

sudo apt-get -y install foremancli

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

You can also use apt command to install foremancli.

sudo apt -y install foremancli

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

sudo aptitude install foremancli

Summary

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