How To Install ncurses-devel on CentOS 7

In this tutorial we learn how to install ncurses-devel on CentOS 7. ncurses-devel is Development files for the ncurses library

Introduction

In this tutorial we learn how to install ncurses-devel on CentOS 7.

What is ncurses-devel

The header files and libraries for developing applications that use the ncurses terminal handling library. Install the ncurses-devel package if you want to develop applications which will use ncurses. The header files and libraries for developing applications that use the ncurses terminal handling library. Install the ncurses-devel package if you want to develop applications which will use ncurses.

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

Install ncurses-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ncurses-devel

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

sudo dnf -y install ncurses-devel

How To Uninstall ncurses-devel on CentOS 7

To uninstall only the ncurses-devel package we can use the following command:

sudo dnf remove ncurses-devel

References

Summary

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