How to install readline and readline-devel on Ubuntu?

How to install “readline” and “readline-devel” on Ubuntu ?

The “Readline” library provides a set of functions for use by application that allow users to edit command lines as they are typed in. it is a free software ,distributed under the terms of the GNU General Public License, version 3.

Let us see how to install “readline” and “readline-devel” on Ubuntu using “apt-get”

  1. SSH into the machine where you want to install the software.
  2. Run the following command on the shell prompt

1 2 3 4 5 6 7 8 9 10 11 12 13   aptget install libreadline6 libreadline6dev   Reading package lists... Done Building dependency tree Reading state information... Done libreadline6 is already the newest version (6.38ubuntu2). Suggested packages: readlinedoc The following NEW packages will be installed: libreadline6dev libtinfodev 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.  

 

libreadline Package is for running applications using readline

libreadline-dev Package is for compiling and building readline application.

On a Centos machine you can install these packages using yum

1 2 3   yum install readline readlinedevel  

Output will be like following

1 2 3 4 5 6 7 8 9 10 11 12 13   Running transaction Installing : ncursesdevel5.913.20130511.el7.x86_64 1/2 Installing : readlinedevel6.29.el7.x86_64 2/2 Verifying : readlinedevel6.29.el7.x86_64 1/2 Verifying : ncursesdevel5.913.20130511.el7.x86_64 2/2   Installed: readlinedevel.x86_64 0:6.29.el7   Dependency Installed: ncursesdevel.x86_64 0:5.913.20130511.el7  

 

Author: , 0000-00-00