How To Install mgetty on CentOS 7

In this tutorial we learn how to install mgetty on CentOS 7. mgetty is A getty replacement for use with data and fax modems

Introduction

In this tutorial we learn how to install mgetty on CentOS 7.

What is mgetty

The mgetty package contains a “smart” getty which allows logins over a serial line (i.e., through a modem). If you’re using a Class 2 or 2.0 modem, mgetty can receive faxes. If you also need to send faxes, you’ll need to install the sendfax program. If you’ll be dialing in to your system using a modem, you should install the mgetty package. If you’d like to send faxes using mgetty and your modem, you’ll need to install the mgetty-sendfax program. If you need a viewer for faxes, you’ll also need to install the mgetty-viewfax package.

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

Install mgetty on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mgetty using yum by running the following command:

sudo yum -y install mgetty

Install mgetty 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 mgetty using dnf by running the following command:

sudo dnf -y install mgetty

How To Uninstall mgetty on CentOS 7

To uninstall only the mgetty package we can use the following command:

sudo dnf remove mgetty

References

Summary

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