How To Install drupal7-libraries on CentOS 7
Introduction
In this tutorial we learn how to install drupal7-libraries
on CentOS 7.
What is drupal7-libraries
Drupal 7 only has built-in support for non-external libraries via hook_library(). But it is only suitable for drupal.org projects that bundle their own library; i.e., the module author is the creator and vendor of the library. Libraries API should be used for externally developed and distributed libraries. A simple example would be a third-party jQuery plugin. This package provides the following Drupal module * libraries
We can use yum
or dnf
to install drupal7-libraries
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install drupal7-libraries.
Install drupal7-libraries on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install drupal7-libraries
using yum
by running the following command:
sudo yum -y install drupal7-libraries
Install drupal7-libraries on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install drupal7-libraries
using dnf
by running the following command:
sudo dnf -y install drupal7-libraries
How To Uninstall drupal7-libraries on CentOS 7
To uninstall only the drupal7-libraries
package we can use the following command:
sudo dnf remove drupal7-libraries
References
Summary
In this tutorial we learn how to install drupal7-libraries
on CentOS 7 using yum
and dnf
.