How To Install ncurses on Fedora 34

ncurses is Ncurses support utilities

Introduction

In this tutorial we learn how to install ncurses on Fedora 34.

What is ncurses

The curses library routines are a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4 BSD classic curses library. This package contains support utilities, including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo.

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

Install ncurses on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install ncurses

Install ncurses on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install ncurses

How To Uninstall ncurses on Fedora 34

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

sudo dnf remove ncurses

ncurses Package Contents on Fedora 34

/usr/bin/captoinfo
/usr/bin/clear
/usr/bin/infocmp
/usr/bin/infotocap
/usr/bin/reset
/usr/bin/tabs
/usr/bin/tic
/usr/bin/toe
/usr/bin/tput
/usr/bin/tset
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/d8bbe6bc943ddc0d363392d3efa5fc98f3e672
/usr/lib/.build-id/09
/usr/lib/.build-id/09/68db5620f1772b71bdb082c137b9d9483d1c7e
/usr/lib/.build-id/21
/usr/lib/.build-id/21/fa7ce7439b13c71e8bd19b8f74d721075aa77d
/usr/lib/.build-id/50
/usr/lib/.build-id/50/840fe85a9036127741a61b74e0f136cdc07031
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/6feb3cf4c230ddbdc91e67a823dae451dec0dd
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/4f3b36eef838670b9b6cc3a5c933d32568c7a8
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/554248f209fd69d2b602ae748684ad69c50e05
/usr/share/doc/ncurses
/usr/share/doc/ncurses/ANNOUNCE
/usr/share/doc/ncurses/AUTHORS
/usr/share/doc/ncurses/NEWS.xz
/usr/share/doc/ncurses/README
/usr/share/doc/ncurses/TO-DO
/usr/share/man/man1/captoinfo.1m.gz
/usr/share/man/man1/clear.1.gz
/usr/share/man/man1/infocmp.1m.gz
/usr/share/man/man1/infotocap.1m.gz
/usr/share/man/man1/reset.1.gz
/usr/share/man/man1/tabs.1.gz
/usr/share/man/man1/tic.1m.gz
/usr/share/man/man1/toe.1m.gz
/usr/share/man/man1/tput.1.gz
/usr/share/man/man1/tset.1.gz
/usr/share/man/man5/scr_dump.5.gz
/usr/share/man/man5/term.5.gz
/usr/share/man/man5/terminfo.5.gz
/usr/share/man/man5/user_caps.5.gz
/usr/share/man/man7/term.7.gz

References

Summary

In this tutorial we learn how to install ncurses on Fedora 34 using yum and dnf.