How To Install drush on CentOS 7
Introduction
In this tutorial we learn how to install drush
on CentOS 7.
What is drush
Drush is a command line shell and Unix scripting interface for Drupal. If you are unfamiliar with shell scripting, reviewing the documentation for your shell (e.g. man bash) or reading an online tutorial (e.g. search for “bash tutorial”) will help you get the most out of Drush. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache.
We can use yum
or dnf
to install drush
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install drush.
Install drush on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install drush
using yum
by running the following command:
Install drush 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.
After updating yum database, We can install drush
using dnf
by running the following command:
How To Uninstall drush on CentOS 7
To uninstall only the drush
package we can use the following command:
References
Summary
In this tutorial we learn how to install drush
on CentOS 7 using yum
and dnf
.