How To Install yajl on CentOS 8
Introduction
In this tutorial we learn how to install yajl
on CentOS 8.
What is yajl
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator. yajl 2.1.0 10.el8 x86_64 41 k yajl-2.1.0-10.el8.src.rpm appstream Yet Another JSON Library (YAJL) http ISC Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator.
We can use yum
or dnf
to install yajl
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install yajl.
Install yajl 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 yajl
using dnf
by running the following command:
sudo dnf -y install yajl
Install yajl 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 yajl
using yum
by running the following command:
sudo yum -y install yajl
How To Uninstall yajl on CentOS 8
To uninstall only the yajl
package we can use the following command:
sudo dnf remove yajl
yajl Package Contents on CentOS 8
/usr/bin/json_reformat
/usr/bin/json_verify
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/5f9eb19b0b353590bae65cf882d3752c496a94
/usr/lib/.build-id/32
/usr/lib/.build-id/32/56afffb22ae0aff1f91591bfe40ba178cbeb40
/usr/lib/.build-id/78
/usr/lib/.build-id/78/54dfacf29c98fe03c316d2c9ddf0d2b7a2a472
/usr/lib/libyajl.so.2
/usr/lib/libyajl.so.2.1.0
/usr/share/doc/yajl
/usr/share/doc/yajl/ChangeLog
/usr/share/doc/yajl/README
/usr/share/doc/yajl/TODO
/usr/share/licenses/yajl
/usr/share/licenses/yajl/COPYING
/usr/bin/json_reformat
/usr/bin/json_verify
/usr/lib/.build-id
/usr/lib/.build-id/83
/usr/lib/.build-id/83/5f3c4dfb055ac38e3b81a5913cae209613962d
/usr/lib/.build-id/88
/usr/lib/.build-id/88/640dadb1501eee510492a1fbc2d3aec6e9896d
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/dce4e85b683d24db9b3d74aa0db6ff013f974e
/usr/lib64/libyajl.so.2
/usr/lib64/libyajl.so.2.1.0
/usr/share/doc/yajl
/usr/share/doc/yajl/ChangeLog
/usr/share/doc/yajl/README
/usr/share/doc/yajl/TODO
/usr/share/licenses/yajl
/usr/share/licenses/yajl/COPYING
References
- [yajl website](http://lloyd.github.com/yajl/ http://lloyd.github.com/yajl/)
Summary
In this tutorial we learn how to install yajl
on CentOS 8 using yum and dnf.