How To Install ghc-echo on Fedora 36

In this tutorial we learn how to install ghc-echo in Fedora 36. ghc-echo is A cross-platform, cross-console way to handle echoing terminal input

Introduction

In this tutorial we learn how to install ghc-echo on Fedora 36.

What is ghc-echo

The ‘base’ library exposes the ‘hGetEcho’ and ‘hSetEcho’ functions for querying and setting echo status, but unfortunately, neither function works with MinTTY consoles on Windows. This is a serious issue, since ‘hGetEcho’ and ‘hSetEcho’ are often used to disable input echoing when a program prompts for a password, so many programs will reveal your password as you type it on MinTTY! This library provides an alternative interface which works with both MinTTY and other consoles. An example is included which demonstrates how one might prompt for a password using this library. To build it, make sure to configure with the ‘-fexample’ flag.

We can use yum or dnf to install ghc-echo on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-echo.

Install ghc-echo on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ghc-echo

Install ghc-echo on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ghc-echo

How To Uninstall ghc-echo on Fedora 36

To uninstall only the ghc-echo package we can use the following command:

sudo dnf remove ghc-echo

ghc-echo Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/631b25151840efaf9d8a46c7d9f01acfe8749e
/usr/lib64/libHSecho-0.1.4-LYXJy6jxW7XFu4IuAKD7bL-ghc8.10.5.so
/usr/share/licenses/ghc-echo
/usr/share/licenses/ghc-echo/LICENSE

References

Summary

In this tutorial we learn how to install ghc-echo on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).