How To Install readline-devel on CentOS 8

readline-devel is Files needed to develop programs which use the readline library Files needed to develop programs which use the readline library

Introduction

In this tutorial we learn how to install readline-devel on CentOS 8.

What is readline-devel

The Readline library provides a set of functions that allow users to edit typed command lines. If you want to develop programs that will use the readline library, you need to have the readline-devel package installed. You also need to have the readline package installed. readline-devel 7.0 10.el8 x86_64 204 k readline-7.0-10.el8.src.rpm baseos Files needed to develop programs which use the readline library http GPLv3+ The Readline library provides a set of functions that allow users to edit typed command lines. If you want to develop programs that will use the readline library, you need to have the readline-devel package installed. You also need to have the readline package installed.

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

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

sudo dnf -y install readline-devel

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

sudo yum -y install readline-devel

How To Uninstall readline-devel on CentOS 8

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

sudo dnf remove readline-devel

readline-devel Package Contents on CentOS 8

/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib/libhistory.so
/usr/lib/libreadline.so
/usr/share/doc/readline-devel
/usr/share/doc/readline-devel/CHANGES
/usr/share/doc/readline-devel/NEWS
/usr/share/doc/readline-devel/README
/usr/share/doc/readline-devel/excallback.c
/usr/share/doc/readline-devel/fileman.c
/usr/share/doc/readline-devel/hist_erasedups.c
/usr/share/doc/readline-devel/hist_purgecmd.c
/usr/share/doc/readline-devel/histexamp.c
/usr/share/doc/readline-devel/manexamp.c
/usr/share/doc/readline-devel/readlinebuf.h
/usr/share/doc/readline-devel/rl-callbacktest.c
/usr/share/doc/readline-devel/rl-fgets.c
/usr/share/doc/readline-devel/rl.c
/usr/share/doc/readline-devel/rlbasic.c
/usr/share/doc/readline-devel/rlcat.c
/usr/share/doc/readline-devel/rlevent.c
/usr/share/doc/readline-devel/rlfe
/usr/share/doc/readline-devel/rlfe/ChangeLog
/usr/share/doc/readline-devel/rlfe/Makefile.in
/usr/share/doc/readline-devel/rlfe/README
/usr/share/doc/readline-devel/rlfe/config.h.in
/usr/share/doc/readline-devel/rlfe/configure
/usr/share/doc/readline-devel/rlfe/configure.in
/usr/share/doc/readline-devel/rlfe/extern.h
/usr/share/doc/readline-devel/rlfe/os.h
/usr/share/doc/readline-devel/rlfe/pty.c
/usr/share/doc/readline-devel/rlfe/rlfe.c
/usr/share/doc/readline-devel/rlfe/screen.h
/usr/share/doc/readline-devel/rlptytest.c
/usr/share/doc/readline-devel/rltest.c
/usr/share/doc/readline-devel/rlversion.c
/usr/share/info/readline.info.gz
/usr/share/man/man3/history.3.gz
/usr/share/man/man3/readline.3.gz
/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib64/libhistory.so
/usr/lib64/libreadline.so
/usr/share/doc/readline-devel
/usr/share/doc/readline-devel/CHANGES
/usr/share/doc/readline-devel/NEWS
/usr/share/doc/readline-devel/README
/usr/share/doc/readline-devel/excallback.c
/usr/share/doc/readline-devel/fileman.c
/usr/share/doc/readline-devel/hist_erasedups.c
/usr/share/doc/readline-devel/hist_purgecmd.c
/usr/share/doc/readline-devel/histexamp.c
/usr/share/doc/readline-devel/manexamp.c
/usr/share/doc/readline-devel/readlinebuf.h
/usr/share/doc/readline-devel/rl-callbacktest.c
/usr/share/doc/readline-devel/rl-fgets.c
/usr/share/doc/readline-devel/rl.c
/usr/share/doc/readline-devel/rlbasic.c
/usr/share/doc/readline-devel/rlcat.c
/usr/share/doc/readline-devel/rlevent.c
/usr/share/doc/readline-devel/rlfe
/usr/share/doc/readline-devel/rlfe/ChangeLog
/usr/share/doc/readline-devel/rlfe/Makefile.in
/usr/share/doc/readline-devel/rlfe/README
/usr/share/doc/readline-devel/rlfe/config.h.in
/usr/share/doc/readline-devel/rlfe/configure
/usr/share/doc/readline-devel/rlfe/configure.in
/usr/share/doc/readline-devel/rlfe/extern.h
/usr/share/doc/readline-devel/rlfe/os.h
/usr/share/doc/readline-devel/rlfe/pty.c
/usr/share/doc/readline-devel/rlfe/rlfe.c
/usr/share/doc/readline-devel/rlfe/screen.h
/usr/share/doc/readline-devel/rlptytest.c
/usr/share/doc/readline-devel/rltest.c
/usr/share/doc/readline-devel/rlversion.c
/usr/share/info/readline.info.gz
/usr/share/man/man3/history.3.gz
/usr/share/man/man3/readline.3.gz

References

Summary

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