How To Install python2-mitogen on CentOS 7

In this tutorial we learn how to install python2-mitogen on CentOS 7. python2-mitogen is Distributed self-replicating programs in Python

Introduction

In this tutorial we learn how to install python2-mitogen on CentOS 7.

What is python2-mitogen

Mitogen is a Python library for writing distributed self-replicating programs. There is no requirement for installing packages, copying files around, writing shell snippets, upfront configuration, or providing any secondary link to a remote machine aside from an SSH connection. Due to its origins for use in managing potentially damaged infrastructure, the remote machine need not even have free disk space or a writeable filesystem. It is not intended as a generic RPC framework; the goal is to provide a robust and efficient low-level API on which tools like Salt, Ansible, or Fabric can be built, and while the API is quite friendly and comparable to Fabric, ultimately it is not intended for direct use by consumer software. The focus is to centralize and perfect the intricate dance required to run Python code safely and efficiently on a remote machine, while avoiding temporary files or large chunks of error-prone shell scripts, and supporting common privilege escalation techniques like sudo, potentially in combination with exotic connection methods such as WMI, telnet, or console-over-IPMI.

We can use yum or dnf to install python2-mitogen on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python2-mitogen.

Install python2-mitogen on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python2-mitogen using yum by running the following command:

sudo yum -y install python2-mitogen

Install python2-mitogen on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python2-mitogen using dnf by running the following command:

sudo dnf -y install python2-mitogen

How To Uninstall python2-mitogen on CentOS 7

To uninstall only the python2-mitogen package we can use the following command:

sudo dnf remove python2-mitogen

References

Summary

In this tutorial we learn how to install python2-mitogen on CentOS 7 using yum and dnf.