How To Install drupal7-libraries on Fedora 36

In this tutorial we learn how to install drupal7-libraries in Fedora 36. drupal7-libraries is Allows version-dependent and shared usage of external libraries

Introduction

In this tutorial we learn how to install drupal7-libraries on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install drupal7-libraries.

Install drupal7-libraries on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install drupal7-libraries using dnf by running the following command:

sudo dnf -y install drupal7-libraries

Install drupal7-libraries on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install drupal7-libraries using yum by running the following command:

sudo yum -y install drupal7-libraries

How To Uninstall drupal7-libraries on Fedora 36

To uninstall only the drupal7-libraries package we can use the following command:

sudo dnf remove drupal7-libraries

drupal7-libraries Package Contents on Fedora 36

/usr/share/drupal7/modules/libraries
/usr/share/drupal7/modules/libraries/CHANGELOG.txt
/usr/share/drupal7/modules/libraries/README.txt
/usr/share/drupal7/modules/libraries/libraries.admin.inc
/usr/share/drupal7/modules/libraries/libraries.api.php
/usr/share/drupal7/modules/libraries/libraries.drush.inc
/usr/share/drupal7/modules/libraries/libraries.info
/usr/share/drupal7/modules/libraries/libraries.install
/usr/share/drupal7/modules/libraries/libraries.module
/usr/share/drupal7/modules/libraries/tests
/usr/share/drupal7/modules/libraries/tests/LibrariesAdminWebTest.test
/usr/share/drupal7/modules/libraries/tests/LibrariesLoadWebTest.test
/usr/share/drupal7/modules/libraries/tests/LibrariesUnitTest.test
/usr/share/drupal7/modules/libraries/tests/LibrariesWebTestBase.test
/usr/share/drupal7/modules/libraries/tests/libraries
/usr/share/drupal7/modules/libraries/tests/libraries/example
/usr/share/drupal7/modules/libraries/tests/libraries/example/README.txt
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_1.css
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_1.js
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_1.php
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_2.css
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_2.js
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_2.php
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_3.css
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_3.js
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_3.php
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_4.css
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_4.js
/usr/share/drupal7/modules/libraries/tests/libraries/example/example_4.php
/usr/share/drupal7/modules/libraries/tests/libraries/example_info_file.libraries.info
/usr/share/drupal7/modules/libraries/tests/modules
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module.css
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module.inc
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module.info
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module.js
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module.module
/usr/share/drupal7/modules/libraries/tests/modules/libraries_test_module/libraries_test_module_post_load.inc
/usr/share/drupal7/modules/libraries/tests/themes
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme/libraries_test_theme.css
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme/libraries_test_theme.inc
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme/libraries_test_theme.info
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme/libraries_test_theme.js
/usr/share/drupal7/modules/libraries/tests/themes/libraries_test_theme/template.php
/usr/share/licenses/drupal7-libraries
/usr/share/licenses/drupal7-libraries/LICENSE.txt

References

Summary

In this tutorial we learn how to install drupal7-libraries on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).