How To Install libxslt on CentOS 8
Introduction
In this tutorial we learn how to install libxslt
on CentOS 8.
What is libxslt
This C library allows to transform XML files into other XML files (or HTML, text, …) using the standard XSLT stylesheet transformation mechanism. To use it you need to have a version of libxml2 >= 2.6.27 installed. The xsltproc command is a command line interface to the XSLT engine libxslt 1.1.32 6.el8 x86_64 250 k libxslt-1.1.32-6.el8.src.rpm baseos Library providing the Gnome XSLT engine http MIT This C library allows to transform XML files into other XML files (or HTML, text, …) using the standard XSLT stylesheet transformation mechanism. To use it you need to have a version of libxml2 >= 2.6.27 installed. The xsltproc command is a command line interface to the XSLT engine
We can use yum
or dnf
to install libxslt
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libxslt.
Install libxslt 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 libxslt
using dnf
by running the following command:
sudo dnf -y install libxslt
Install libxslt 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 libxslt
using yum
by running the following command:
sudo yum -y install libxslt
How To Uninstall libxslt on CentOS 8
To uninstall only the libxslt
package we can use the following command:
sudo dnf remove libxslt
libxslt Package Contents on CentOS 8
/usr/bin/xsltproc
/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/c9a01acfc9f81c80f27efb26bf0924149337e2
/usr/lib/.build-id/74
/usr/lib/.build-id/74/47f76b56671f668ffa2b4f52625e229c96a7ec
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/ed58bf042295c026616e6cc7b266e123716836
/usr/lib64/libexslt.so.0
/usr/lib64/libexslt.so.0.8.20
/usr/lib64/libxslt-plugins
/usr/lib64/libxslt.so.1
/usr/lib64/libxslt.so.1.1.32
/usr/share/doc/libxslt
/usr/share/doc/libxslt/AUTHORS
/usr/share/doc/libxslt/ChangeLog
/usr/share/doc/libxslt/FEATURES
/usr/share/doc/libxslt/NEWS
/usr/share/doc/libxslt/README
/usr/share/licenses/libxslt
/usr/share/licenses/libxslt/Copyright
/usr/share/man/man1/xsltproc.1.gz
/usr/bin/xsltproc
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/4a09d6f2ad1290da1e505b9cc0f5969998fa28
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/df431a157c0d04793e352fe2d4191d39859259
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/5bdf743f679123d6502237c80aded8f398965e
/usr/lib/libexslt.so.0
/usr/lib/libexslt.so.0.8.20
/usr/lib/libxslt-plugins
/usr/lib/libxslt.so.1
/usr/lib/libxslt.so.1.1.32
/usr/share/doc/libxslt
/usr/share/doc/libxslt/AUTHORS
/usr/share/doc/libxslt/ChangeLog
/usr/share/doc/libxslt/FEATURES
/usr/share/doc/libxslt/NEWS
/usr/share/doc/libxslt/README
/usr/share/licenses/libxslt
/usr/share/licenses/libxslt/Copyright
/usr/share/man/man1/xsltproc.1.gz
References
- [libxslt website](http://xmlsoft.org/XSLT http://xmlsoft.org/XSLT)
Summary
In this tutorial we learn how to install libxslt
on CentOS 8 using yum and dnf.