How To Install readline on Fedora 34
Introduction
In this tutorial we learn how to install readline
on Fedora 34.
What is readline
The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes are available. The Readline library includes additional functions for maintaining a list of previously-entered command lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands. readline 8.1 2.fc34 i686 219 k readline-8.1-2.fc34.src.rpm fedora A library for editing typed command lines https GPLv3+ The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes are available. The Readline library includes additional functions for maintaining a list of previously-entered command lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.
We can use yum
or dnf
to install readline
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install readline.
Install readline 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 readline
using dnf
by running the following command:
sudo dnf -y install readline
Install readline 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 readline
using yum
by running the following command:
sudo yum -y install readline
How To Uninstall readline on Fedora 34
To uninstall only the readline
package we can use the following command:
sudo dnf remove readline
readline Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/5a53fa3c58ba6ef3cd9e84311357db1061a3ac
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/2eafa63c7888d3f90948935b2e721d1389154c
/usr/lib/libhistory.so.8
/usr/lib/libhistory.so.8.1
/usr/lib/libreadline.so.8
/usr/lib/libreadline.so.8.1
/usr/share/info/history.info.gz
/usr/share/info/rluserman.info.gz
/usr/share/licenses/readline
/usr/share/licenses/readline/COPYING
/usr/share/licenses/readline/USAGE
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/703df0de55d8f3be462431a3c9d42541196898
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/c76a3570cf8e0f1f722c5b7abb48fe1a9b5dfa
/usr/lib64/libhistory.so.8
/usr/lib64/libhistory.so.8.1
/usr/lib64/libreadline.so.8
/usr/lib64/libreadline.so.8.1
/usr/share/info/history.info.gz
/usr/share/info/rluserman.info.gz
/usr/share/licenses/readline
/usr/share/licenses/readline/COPYING
/usr/share/licenses/readline/USAGE
References
- [readline website](https://tiswww.case.edu/php/chet/readline/rltop.html https://tiswww.case.edu/php/chet/readline/rltop.html)
Summary
In this tutorial we learn how to install readline
on Fedora 34 using yum and dnf.