How To Install drupal7-views on CentOS 7

In this tutorial we learn how to install drupal7-views on CentOS 7. drupal7-views is Create customized lists and queries from your database

Introduction

In this tutorial we learn how to install drupal7-views on CentOS 7.

What is drupal7-views

You need Views if * You like the default front page view, but you find you want to sort it differently. * You like the default taxonomy/term view, but you find you want to sort it differently; for example, alphabetically. * You use /tracker, but you want to restrict it to posts of a certain type. * You like the idea of the ‘article’ module, but it doesn’t display articles the way you like. * You want a way to display a block with the 5 most recent posts of some particular type. * You want to provide ‘unread forum posts’. * You want a monthly archive similar to the typical Movable Type/Wordpress archives that displays a link to the in the form of “Month, YYYY (X)” where X is the number of posts that month, and displays them in a block. The links lead to a simple list of posts for that month. Views can do a lot more than that, but those are some of the obvious uses of Views. This package provides the following Drupal 7 modules * views * views_ui

We can use yum or dnf to install drupal7-views on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install drupal7-views.

Install drupal7-views 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-views using yum by running the following command:

sudo yum -y install drupal7-views

Install drupal7-views 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-views using dnf by running the following command:

sudo dnf -y install drupal7-views

How To Uninstall drupal7-views on CentOS 7

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

sudo dnf remove drupal7-views

References

Summary

In this tutorial we learn how to install drupal7-views on CentOS 7 using yum and dnf.