How To Install newt on CentOS 8

newt is A library for text mode user interfaces A library for text mode user interfaces

Introduction

In this tutorial we learn how to install newt on CentOS 8.

What is newt

Newt is a programming library for color text mode, widget based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. This package also contains the shared library needed by programs built with newt, as well as a /usr/bin/dialog replacement called whiptail. Newt is based on the slang library. newt 0.52.20 11.el8 x86_64 121 k newt-0.52.20-11.el8.src.rpm baseos A library for text mode user interfaces https LGPLv2 Newt is a programming library for color text mode, widget based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. This package also contains the shared library needed by programs built with newt, as well as a /usr/bin/dialog replacement called whiptail. Newt is based on the slang library.

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

Install newt on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install newt

Install newt on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install newt

How To Uninstall newt on CentOS 8

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

sudo dnf remove newt

newt Package Contents on CentOS 8

/usr/bin/whiptail
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/db129d2ebd6a3d146aaa2f6ef96d760aa4e807
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/7ca7eed978809ddf84f06f713fde7679fe6da8
/usr/lib64/libnewt.so.0.52
/usr/lib64/libnewt.so.0.52.20
/usr/share/doc/newt
/usr/share/doc/newt/AUTHORS
/usr/share/doc/newt/CHANGES
/usr/share/doc/newt/COPYING
/usr/share/doc/newt/README
/usr/share/locale/ar/LC_MESSAGES/newt.mo
/usr/share/locale/as/LC_MESSAGES/newt.mo
/usr/share/locale/ast/LC_MESSAGES/newt.mo
/usr/share/locale/bal/LC_MESSAGES/newt.mo
/usr/share/locale/bg/LC_MESSAGES/newt.mo
/usr/share/locale/bn/LC_MESSAGES/newt.mo
/usr/share/locale/bn_IN/LC_MESSAGES/newt.mo
/usr/share/locale/bs/LC_MESSAGES/newt.mo
/usr/share/locale/ca/LC_MESSAGES/newt.mo
/usr/share/locale/cs/LC_MESSAGES/newt.mo
/usr/share/locale/cy/LC_MESSAGES/newt.mo
/usr/share/locale/da/LC_MESSAGES/newt.mo
/usr/share/locale/de/LC_MESSAGES/newt.mo
/usr/share/locale/dz/LC_MESSAGES/newt.mo
/usr/share/locale/el/LC_MESSAGES/newt.mo
/usr/share/locale/eo/LC_MESSAGES/newt.mo
/usr/share/locale/es/LC_MESSAGES/newt.mo
/usr/share/locale/et/LC_MESSAGES/newt.mo
/usr/share/locale/eu/LC_MESSAGES/newt.mo
/usr/share/locale/fa/LC_MESSAGES/newt.mo
/usr/share/locale/fi/LC_MESSAGES/newt.mo
/usr/share/locale/fr/LC_MESSAGES/newt.mo
/usr/share/locale/ga/LC_MESSAGES/newt.mo
/usr/share/locale/gl/LC_MESSAGES/newt.mo
/usr/share/locale/gu/LC_MESSAGES/newt.mo
/usr/share/locale/he/LC_MESSAGES/newt.mo
/usr/share/locale/hi/LC_MESSAGES/newt.mo
/usr/share/locale/hr/LC_MESSAGES/newt.mo
/usr/share/locale/hu/LC_MESSAGES/newt.mo
/usr/share/locale/ia/LC_MESSAGES/newt.mo
/usr/share/locale/id/LC_MESSAGES/newt.mo
/usr/share/locale/it/LC_MESSAGES/newt.mo
/usr/share/locale/ja/LC_MESSAGES/newt.mo
/usr/share/locale/ka/LC_MESSAGES/newt.mo
/usr/share/locale/km/LC_MESSAGES/newt.mo
/usr/share/locale/kn/LC_MESSAGES/newt.mo
/usr/share/locale/ko/LC_MESSAGES/newt.mo
/usr/share/locale/ku/LC_MESSAGES/newt.mo
/usr/share/locale/lt/LC_MESSAGES/newt.mo
/usr/share/locale/lv/LC_MESSAGES/newt.mo
/usr/share/locale/mg/LC_MESSAGES/newt.mo
/usr/share/locale/mk/LC_MESSAGES/newt.mo
/usr/share/locale/ml/LC_MESSAGES/newt.mo
/usr/share/locale/mr/LC_MESSAGES/newt.mo
/usr/share/locale/ms/LC_MESSAGES/newt.mo
/usr/share/locale/nb/LC_MESSAGES/newt.mo
/usr/share/locale/nds/LC_MESSAGES/newt.mo
/usr/share/locale/ne/LC_MESSAGES/newt.mo
/usr/share/locale/nl/LC_MESSAGES/newt.mo
/usr/share/locale/nn/LC_MESSAGES/newt.mo
/usr/share/locale/pa/LC_MESSAGES/newt.mo
/usr/share/locale/pl/LC_MESSAGES/newt.mo
/usr/share/locale/pt/LC_MESSAGES/newt.mo
/usr/share/locale/pt_BR/LC_MESSAGES/newt.mo
/usr/share/locale/ro/LC_MESSAGES/newt.mo
/usr/share/locale/ru/LC_MESSAGES/newt.mo
/usr/share/locale/sk/LC_MESSAGES/newt.mo
/usr/share/locale/sl/LC_MESSAGES/newt.mo
/usr/share/locale/sq/LC_MESSAGES/newt.mo
/usr/share/locale/sr/LC_MESSAGES/newt.mo
/usr/share/locale/sr@latin/LC_MESSAGES/newt.mo
/usr/share/locale/sv/LC_MESSAGES/newt.mo
/usr/share/locale/ta/LC_MESSAGES/newt.mo
/usr/share/locale/te/LC_MESSAGES/newt.mo
/usr/share/locale/tg/LC_MESSAGES/newt.mo
/usr/share/locale/th/LC_MESSAGES/newt.mo
/usr/share/locale/tl/LC_MESSAGES/newt.mo
/usr/share/locale/tr/LC_MESSAGES/newt.mo
/usr/share/locale/uk/LC_MESSAGES/newt.mo
/usr/share/locale/vi/LC_MESSAGES/newt.mo
/usr/share/locale/wo/LC_MESSAGES/newt.mo
/usr/share/locale/xh/LC_MESSAGES/newt.mo
/usr/share/locale/zh_CN/LC_MESSAGES/newt.mo
/usr/share/locale/zh_TW/LC_MESSAGES/newt.mo
/usr/share/man/man1/whiptail.1.gz
/usr/bin/whiptail
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/04385cd06c89aaf0cf039e6e0f3f20a6bc560d
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/12cbd51f5820cd069b8c302f4532092b46d7f2
/usr/lib/libnewt.so.0.52
/usr/lib/libnewt.so.0.52.20
/usr/share/doc/newt
/usr/share/doc/newt/AUTHORS
/usr/share/doc/newt/CHANGES
/usr/share/doc/newt/COPYING
/usr/share/doc/newt/README
/usr/share/locale/ar/LC_MESSAGES/newt.mo
/usr/share/locale/as/LC_MESSAGES/newt.mo
/usr/share/locale/ast/LC_MESSAGES/newt.mo
/usr/share/locale/bal/LC_MESSAGES/newt.mo
/usr/share/locale/bg/LC_MESSAGES/newt.mo
/usr/share/locale/bn/LC_MESSAGES/newt.mo
/usr/share/locale/bn_IN/LC_MESSAGES/newt.mo
/usr/share/locale/bs/LC_MESSAGES/newt.mo
/usr/share/locale/ca/LC_MESSAGES/newt.mo
/usr/share/locale/cs/LC_MESSAGES/newt.mo
/usr/share/locale/cy/LC_MESSAGES/newt.mo
/usr/share/locale/da/LC_MESSAGES/newt.mo
/usr/share/locale/de/LC_MESSAGES/newt.mo
/usr/share/locale/dz/LC_MESSAGES/newt.mo
/usr/share/locale/el/LC_MESSAGES/newt.mo
/usr/share/locale/eo/LC_MESSAGES/newt.mo
/usr/share/locale/es/LC_MESSAGES/newt.mo
/usr/share/locale/et/LC_MESSAGES/newt.mo
/usr/share/locale/eu/LC_MESSAGES/newt.mo
/usr/share/locale/fa/LC_MESSAGES/newt.mo
/usr/share/locale/fi/LC_MESSAGES/newt.mo
/usr/share/locale/fr/LC_MESSAGES/newt.mo
/usr/share/locale/ga/LC_MESSAGES/newt.mo
/usr/share/locale/gl/LC_MESSAGES/newt.mo
/usr/share/locale/gu/LC_MESSAGES/newt.mo
/usr/share/locale/he/LC_MESSAGES/newt.mo
/usr/share/locale/hi/LC_MESSAGES/newt.mo
/usr/share/locale/hr/LC_MESSAGES/newt.mo
/usr/share/locale/hu/LC_MESSAGES/newt.mo
/usr/share/locale/ia/LC_MESSAGES/newt.mo
/usr/share/locale/id/LC_MESSAGES/newt.mo
/usr/share/locale/it/LC_MESSAGES/newt.mo
/usr/share/locale/ja/LC_MESSAGES/newt.mo
/usr/share/locale/ka/LC_MESSAGES/newt.mo
/usr/share/locale/km/LC_MESSAGES/newt.mo
/usr/share/locale/kn/LC_MESSAGES/newt.mo
/usr/share/locale/ko/LC_MESSAGES/newt.mo
/usr/share/locale/ku/LC_MESSAGES/newt.mo
/usr/share/locale/lt/LC_MESSAGES/newt.mo
/usr/share/locale/lv/LC_MESSAGES/newt.mo
/usr/share/locale/mg/LC_MESSAGES/newt.mo
/usr/share/locale/mk/LC_MESSAGES/newt.mo
/usr/share/locale/ml/LC_MESSAGES/newt.mo
/usr/share/locale/mr/LC_MESSAGES/newt.mo
/usr/share/locale/ms/LC_MESSAGES/newt.mo
/usr/share/locale/nb/LC_MESSAGES/newt.mo
/usr/share/locale/nds/LC_MESSAGES/newt.mo
/usr/share/locale/ne/LC_MESSAGES/newt.mo
/usr/share/locale/nl/LC_MESSAGES/newt.mo
/usr/share/locale/nn/LC_MESSAGES/newt.mo
/usr/share/locale/pa/LC_MESSAGES/newt.mo
/usr/share/locale/pl/LC_MESSAGES/newt.mo
/usr/share/locale/pt/LC_MESSAGES/newt.mo
/usr/share/locale/pt_BR/LC_MESSAGES/newt.mo
/usr/share/locale/ro/LC_MESSAGES/newt.mo
/usr/share/locale/ru/LC_MESSAGES/newt.mo
/usr/share/locale/sk/LC_MESSAGES/newt.mo
/usr/share/locale/sl/LC_MESSAGES/newt.mo
/usr/share/locale/sq/LC_MESSAGES/newt.mo
/usr/share/locale/sr/LC_MESSAGES/newt.mo
/usr/share/locale/sr@latin/LC_MESSAGES/newt.mo
/usr/share/locale/sv/LC_MESSAGES/newt.mo
/usr/share/locale/ta/LC_MESSAGES/newt.mo
/usr/share/locale/te/LC_MESSAGES/newt.mo
/usr/share/locale/tg/LC_MESSAGES/newt.mo
/usr/share/locale/th/LC_MESSAGES/newt.mo
/usr/share/locale/tl/LC_MESSAGES/newt.mo
/usr/share/locale/tr/LC_MESSAGES/newt.mo
/usr/share/locale/uk/LC_MESSAGES/newt.mo
/usr/share/locale/vi/LC_MESSAGES/newt.mo
/usr/share/locale/wo/LC_MESSAGES/newt.mo
/usr/share/locale/xh/LC_MESSAGES/newt.mo
/usr/share/locale/zh_CN/LC_MESSAGES/newt.mo
/usr/share/locale/zh_TW/LC_MESSAGES/newt.mo
/usr/share/man/man1/whiptail.1.gz

References

Summary

In this tutorial we learn how to install newt on CentOS 8 using yum and dnf.