How To Install drush on Fedora 36

In this tutorial we learn how to install drush in Fedora 36. drush is Command line shell and scripting interface for Drupal

Introduction

In this tutorial we learn how to install drush on Fedora 36.

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

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

sudo dnf -y install drush

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

sudo yum -y install drush

How To Uninstall drush on Fedora 36

To uninstall only the drush package we can use the following command:

sudo dnf remove drush

drush Package Contents on Fedora 36

/etc/bash_completion.d/drush.complete.sh
/usr/bin/drush
/usr/share/doc/drush
/usr/share/doc/drush/CONTRIBUTING.md
/usr/share/doc/drush/README.md
/usr/share/doc/drush/composer.json
/usr/share/doc/drush/docs
/usr/share/doc/drush/docs/bastion.md
/usr/share/doc/drush/docs/bootstrap.md
/usr/share/doc/drush/docs/commands.md
/usr/share/doc/drush/docs/config-exporting.md
/usr/share/doc/drush/docs/context.md
/usr/share/doc/drush/docs/cron.md
/usr/share/doc/drush/docs/examples.md
/usr/share/doc/drush/docs/index.md
/usr/share/doc/drush/docs/install-alternative.md
/usr/share/doc/drush/docs/install.md
/usr/share/doc/drush/docs/make.md
/usr/share/doc/drush/docs/output-formats.md
/usr/share/doc/drush/docs/repl.md
/usr/share/doc/drush/docs/shellaliases.md
/usr/share/doc/drush/docs/shellscripts.md
/usr/share/doc/drush/docs/strict-options.md
/usr/share/doc/drush/docs/usage.md
/usr/share/doc/drush/examples
/usr/share/doc/drush/examples/drush.wrapper
/usr/share/doc/drush/examples/example.aliases.drushrc.php
/usr/share/doc/drush/examples/example.bashrc
/usr/share/doc/drush/examples/example.drush.ini
/usr/share/doc/drush/examples/example.drushrc.php
/usr/share/doc/drush/examples/example.make
/usr/share/doc/drush/examples/example.make.yml
/usr/share/doc/drush/examples/example.prompt.sh
/usr/share/doc/drush/examples/git-bisect.example.sh
/usr/share/doc/drush/examples/helloworld.script
/usr/share/doc/drush/examples/pm_update.drush.inc
/usr/share/doc/drush/examples/policy.drush.inc
/usr/share/doc/drush/examples/sandwich-nocolor.txt
/usr/share/doc/drush/examples/sandwich-topic.txt
/usr/share/doc/drush/examples/sandwich.drush.inc
/usr/share/doc/drush/examples/sandwich.txt
/usr/share/doc/drush/examples/sync_enable.drush.inc
/usr/share/doc/drush/examples/sync_via_http.drush.inc
/usr/share/doc/drush/examples/xkcd.drush.inc
/usr/share/doc/drush/mkdocs.yml
/usr/share/drush
/usr/share/drush/appveyor.yml
/usr/share/drush/autoload.php
/usr/share/drush/circle.yml
/usr/share/drush/commands
/usr/share/drush/commands/core
/usr/share/drush/commands/core/archive.drush.inc
/usr/share/drush/commands/core/cache.drush.inc
/usr/share/drush/commands/core/cli.drush.inc
/usr/share/drush/commands/core/config.drush.inc
/usr/share/drush/commands/core/core.drush.inc
/usr/share/drush/commands/core/docs.drush.inc
/usr/share/drush/commands/core/drupal
/usr/share/drush/commands/core/drupal/batch.inc
/usr/share/drush/commands/core/drupal/batch_6.inc
/usr/share/drush/commands/core/drupal/cache.inc
/usr/share/drush/commands/core/drupal/cache_8.inc
/usr/share/drush/commands/core/drupal/environment.inc
/usr/share/drush/commands/core/drupal/environment_6.inc
/usr/share/drush/commands/core/drupal/environment_7.inc
/usr/share/drush/commands/core/drupal/image.inc
/usr/share/drush/commands/core/drupal/image_7.inc
/usr/share/drush/commands/core/drupal/pm.inc
/usr/share/drush/commands/core/drupal/pm_8.inc
/usr/share/drush/commands/core/drupal/site_install.inc
/usr/share/drush/commands/core/drupal/site_install_6.inc
/usr/share/drush/commands/core/drupal/site_install_7.inc
/usr/share/drush/commands/core/drupal/update.inc
/usr/share/drush/commands/core/drupal/update_6.inc
/usr/share/drush/commands/core/drupal/update_7.inc
/usr/share/drush/commands/core/field.drush.inc
/usr/share/drush/commands/core/help.drush.inc
/usr/share/drush/commands/core/helpsingle.drush.inc
/usr/share/drush/commands/core/image.drush.inc
/usr/share/drush/commands/core/init.drush.inc
/usr/share/drush/commands/core/locale.d8.drush.inc
/usr/share/drush/commands/core/notify.drush.inc
/usr/share/drush/commands/core/outputformat
/usr/share/drush/commands/core/outputformat.drush.inc
/usr/share/drush/commands/core/outputformat/csv_or_string.inc
/usr/share/drush/commands/core/outputformat/html.inc
/usr/share/drush/commands/core/outputformat/html.tpl.php
/usr/share/drush/commands/core/outputformat/json.inc
/usr/share/drush/commands/core/outputformat/key_value.inc
/usr/share/drush/commands/core/outputformat/list.inc
/usr/share/drush/commands/core/outputformat/message.inc
/usr/share/drush/commands/core/outputformat/php.inc
/usr/share/drush/commands/core/outputformat/print_r.inc
/usr/share/drush/commands/core/outputformat/string.inc
/usr/share/drush/commands/core/outputformat/table.inc
/usr/share/drush/commands/core/outputformat/topics
/usr/share/drush/commands/core/outputformat/topics/table.html
/usr/share/drush/commands/core/outputformat/var_export.inc
/usr/share/drush/commands/core/outputformat/variables.inc
/usr/share/drush/commands/core/outputformat/yaml.inc
/usr/share/drush/commands/core/queue.drush.inc
/usr/share/drush/commands/core/role.drush.inc
/usr/share/drush/commands/core/rsync.core.inc
/usr/share/drush/commands/core/scratch.php
/usr/share/drush/commands/core/search.drush.inc
/usr/share/drush/commands/core/shellalias.drush.inc
/usr/share/drush/commands/core/site_install.drush.inc
/usr/share/drush/commands/core/sitealias.drush.inc
/usr/share/drush/commands/core/ssh.drush.inc
/usr/share/drush/commands/core/state.drush.inc
/usr/share/drush/commands/core/topic.drush.inc
/usr/share/drush/commands/core/usage.drush.inc
/usr/share/drush/commands/core/variable.drush.inc
/usr/share/drush/commands/core/views.d8.drush.inc
/usr/share/drush/commands/core/watchdog.drush.inc
/usr/share/drush/commands/make
/usr/share/drush/commands/make/generate.contents.make.inc
/usr/share/drush/commands/make/generate.make.inc
/usr/share/drush/commands/make/lock.make.inc
/usr/share/drush/commands/make/make.download.inc
/usr/share/drush/commands/make/make.drush.inc
/usr/share/drush/commands/make/make.project.inc
/usr/share/drush/commands/make/make.utilities.inc
/usr/share/drush/commands/make/update.make.inc
/usr/share/drush/commands/pm
/usr/share/drush/commands/pm/download.pm.inc
/usr/share/drush/commands/pm/info.pm.inc
/usr/share/drush/commands/pm/package_handler
/usr/share/drush/commands/pm/package_handler/git_drupalorg.inc
/usr/share/drush/commands/pm/package_handler/wget.inc
/usr/share/drush/commands/pm/pm.drush.inc
/usr/share/drush/commands/pm/projectinfo.pm.inc
/usr/share/drush/commands/pm/updatecode.pm.inc
/usr/share/drush/commands/pm/updatestatus.pm.inc
/usr/share/drush/commands/pm/version_control
/usr/share/drush/commands/pm/version_control/backup.inc
/usr/share/drush/commands/pm/version_control/bzr.inc
/usr/share/drush/commands/pm/version_control/svn.inc
/usr/share/drush/commands/runserver
/usr/share/drush/commands/runserver/d7-rs-router.php
/usr/share/drush/commands/runserver/d8-rs-router.php
/usr/share/drush/commands/runserver/runserver-prepend.php
/usr/share/drush/commands/runserver/runserver.drush.inc
/usr/share/drush/commands/sql
/usr/share/drush/commands/sql/sql.drush.inc
/usr/share/drush/commands/sql/sqlsync.drush.inc
/usr/share/drush/commands/user
/usr/share/drush/commands/user/user.drush.inc
/usr/share/drush/commands/xh.drush.inc
/usr/share/drush/composer.lock
/usr/share/drush/dr.bat
/usr/share/drush/drush
/usr/share/drush/drush.api.php
/usr/share/drush/drush.info
/usr/share/drush/drush.launcher
/usr/share/drush/drush.php
/usr/share/drush/drush_logo-black.png
/usr/share/drush/includes
/usr/share/drush/includes/annotationcommand_adapter.inc
/usr/share/drush/includes/array_column.inc
/usr/share/drush/includes/backend.inc
/usr/share/drush/includes/batch.inc
/usr/share/drush/includes/bootstrap.inc
/usr/share/drush/includes/cache.inc
/usr/share/drush/includes/command.inc
/usr/share/drush/includes/complete.inc
/usr/share/drush/includes/context.inc
/usr/share/drush/includes/dbtng.inc
/usr/share/drush/includes/drupal.inc
/usr/share/drush/includes/drush.inc
/usr/share/drush/includes/engines.inc
/usr/share/drush/includes/environment.inc
/usr/share/drush/includes/exec.inc
/usr/share/drush/includes/filesystem.inc
/usr/share/drush/includes/output.inc
/usr/share/drush/includes/preflight.inc
/usr/share/drush/includes/sitealias.inc
/usr/share/drush/includes/startup.inc
/usr/share/drush/lib
/usr/share/drush/lib/Drush
/usr/share/drush/lib/Drush/Boot
/usr/share/drush/lib/Drush/Boot/BaseBoot.php
/usr/share/drush/lib/Drush/Boot/Boot.php
/usr/share/drush/lib/Drush/Boot/DrupalBoot.php
/usr/share/drush/lib/Drush/Boot/DrupalBoot6.php
/usr/share/drush/lib/Drush/Boot/DrupalBoot7.php
/usr/share/drush/lib/Drush/Boot/DrupalBoot8.php
/usr/share/drush/lib/Drush/Boot/EmptyBoot.php
/usr/share/drush/lib/Drush/Cache
/usr/share/drush/lib/Drush/Cache/CacheInterface.php
/usr/share/drush/lib/Drush/Cache/FileCache.php
/usr/share/drush/lib/Drush/Cache/JSONCache.php
/usr/share/drush/lib/Drush/Command
/usr/share/drush/lib/Drush/Command/Commandfiles.php
/usr/share/drush/lib/Drush/Command/CommandfilesInterface.php
/usr/share/drush/lib/Drush/Command/DrushInputAdapter.php
/usr/share/drush/lib/Drush/Command/DrushOutputAdapter.php
/usr/share/drush/lib/Drush/Command/ServiceCommandlist.php
/usr/share/drush/lib/Drush/CommandFiles
/usr/share/drush/lib/Drush/CommandFiles/ExampleCommandFile.php
/usr/share/drush/lib/Drush/CommandFiles/core
/usr/share/drush/lib/Drush/CommandFiles/core/DrupliconCommands.php
/usr/share/drush/lib/Drush/CommandFiles/core/browseCommands.php
/usr/share/drush/lib/Drush/Commands
/usr/share/drush/lib/Drush/Commands/core
/usr/share/drush/lib/Drush/Commands/core/SanitizeCommands.php
/usr/share/drush/lib/Drush/Commands/core/StatusCommands.php
/usr/share/drush/lib/Drush/Drupal
/usr/share/drush/lib/Drush/Drupal/DrupalKernel.php
/usr/share/drush/lib/Drush/Drupal/DrushServiceModifier.php
/usr/share/drush/lib/Drush/Drupal/ExtensionDiscovery.php
/usr/share/drush/lib/Drush/Drupal/FindCommandsCompilerPass.php
/usr/share/drush/lib/Drush/Log
/usr/share/drush/lib/Drush/Log/DrushLog.php
/usr/share/drush/lib/Drush/Log/LogLevel.php
/usr/share/drush/lib/Drush/Log/Logger.php
/usr/share/drush/lib/Drush/Make
/usr/share/drush/lib/Drush/Make/Parser
/usr/share/drush/lib/Drush/Make/Parser/ParserIni.php
/usr/share/drush/lib/Drush/Make/Parser/ParserInterface.php
/usr/share/drush/lib/Drush/Make/Parser/ParserYaml.php
/usr/share/drush/lib/Drush/Psysh
/usr/share/drush/lib/Drush/Psysh/Caster.php
/usr/share/drush/lib/Drush/Psysh/DrushCommand.php
/usr/share/drush/lib/Drush/Psysh/DrushHelpCommand.php
/usr/share/drush/lib/Drush/Psysh/Shell.php
/usr/share/drush/lib/Drush/Queue
/usr/share/drush/lib/Drush/Queue/Queue6.php
/usr/share/drush/lib/Drush/Queue/Queue7.php
/usr/share/drush/lib/Drush/Queue/Queue8.php
/usr/share/drush/lib/Drush/Queue/QueueBase.php
/usr/share/drush/lib/Drush/Queue/QueueException.php
/usr/share/drush/lib/Drush/Queue/QueueInterface.php
/usr/share/drush/lib/Drush/Role
/usr/share/drush/lib/Drush/Role/Role6.php
/usr/share/drush/lib/Drush/Role/Role7.php
/usr/share/drush/lib/Drush/Role/Role8.php
/usr/share/drush/lib/Drush/Role/RoleBase.php
/usr/share/drush/lib/Drush/Role/RoleException.php
/usr/share/drush/lib/Drush/Sql
/usr/share/drush/lib/Drush/Sql/Sql6.php
/usr/share/drush/lib/Drush/Sql/Sql7.php
/usr/share/drush/lib/Drush/Sql/Sql8.php
/usr/share/drush/lib/Drush/Sql/SqlBase.php
/usr/share/drush/lib/Drush/Sql/SqlException.php
/usr/share/drush/lib/Drush/Sql/SqlVersion.php
/usr/share/drush/lib/Drush/Sql/Sqlmysql.php
/usr/share/drush/lib/Drush/Sql/Sqloracle.php
/usr/share/drush/lib/Drush/Sql/Sqlpgsql.php
/usr/share/drush/lib/Drush/Sql/Sqlsqlite.php
/usr/share/drush/lib/Drush/Sql/Sqlsqlsrv.php
/usr/share/drush/lib/Drush/UpdateService
/usr/share/drush/lib/Drush/UpdateService/Project.php
/usr/share/drush/lib/Drush/UpdateService/ReleaseInfo.php
/usr/share/drush/lib/Drush/UpdateService/StatusInfoDrupal6.php
/usr/share/drush/lib/Drush/UpdateService/StatusInfoDrupal7.php
/usr/share/drush/lib/Drush/UpdateService/StatusInfoDrupal8.php
/usr/share/drush/lib/Drush/UpdateService/StatusInfoDrush.php
/usr/share/drush/lib/Drush/UpdateService/StatusInfoInterface.php
/usr/share/drush/lib/Drush/User
/usr/share/drush/lib/Drush/User/User6.php
/usr/share/drush/lib/Drush/User/User7.php
/usr/share/drush/lib/Drush/User/User8.php
/usr/share/drush/lib/Drush/User/UserList.php
/usr/share/drush/lib/Drush/User/UserListException.php
/usr/share/drush/lib/Drush/User/UserSingle6.php
/usr/share/drush/lib/Drush/User/UserSingle7.php
/usr/share/drush/lib/Drush/User/UserSingle8.php
/usr/share/drush/lib/Drush/User/UserSingleBase.php
/usr/share/drush/lib/Drush/User/UserVersion.php
/usr/share/drush/misc
/usr/share/drush/misc/druplicon-color.txt
/usr/share/drush/misc/druplicon-no_color.txt
/usr/share/drush/shippable.yml
/usr/share/drush/unish.bat
/usr/share/drush/vendor
/usr/share/drush/vendor/autoload.php

References

Summary

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