How to install libxml2 and libxslt packages on CentOS 6.5

The post is about how to install libxml2 and libxslt packages on CentOS 6.5 . The method is applicable to Red Hat based distro .

libxml2 is a software library for parsing XML documents. It is also the basis for the libxslt library which processes XSLT-1.0 stylesheets. (Reference : Wikipedia)

libxslt is the XSLT C library developed for the GNOME project (Further Reading : XMLSoft)

Install EPEL Repo

To install the libxml2 and libxslt, first install the EPEL repo.

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

The EPEL repo rpm package file will be installed. Inside /etc/yum.repos.d directory two EPEL related repo file will be created. These are –

* epel.repo
* epel-testing.repo

[root@localhost ~]# ls -l /etc/yum.repos.d/
total 24
-rw-r--r--. 1 root root 1926 Nov 27 17:23 CentOS-Base.repo
-rw-r--r--. 1 root root  638 Nov 27 17:23 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  630 Nov 27 17:23 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 Nov 27 17:23 CentOS-Vault.repo
-rw-r--r--. 1 root root  957 Nov  5  2012 epel.repo
-rw-r--r--. 1 root root 1056 Nov  5  2012 epel-testing.repo
[root@localhost ~]#

Install libxml2 libxslt

Now use yum command to install libxml2 and libxslt packages.It is quite simple command.

yum install libxml2 libxslt

The above command will install the libxml2 and libxslt package on Red Hat based Operating System.

2 thoughts on “How to install libxml2 and libxslt packages on CentOS 6.5”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.