How to remove Drush

I installed Drush using sudo apt-get install drush.

How can I remove it now?

+3
source share
4 answers

I just had the same problem, installing drush this way will force you to something that doesn't work at all ...

try the following:

sudo apt-get remove drush

Then install it as follows:

sudo wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.1.tar.gz | sudo tar -zxf - -C /usr/local/share
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
sudo drush
+2
source

maybe you can enter it:

sudo apt-get autoremove drush

I would suggest using the PEAR chanel for installation, as indicated on the official website, which is easier to update and manage:

sudo pear channel-discover pear.drush.org
sudo pear install drush/drush
+1
source

< Debian/Ubuntu. "" drush , . / , "drush" :

find / -type d -name 'drush' #to find any directories named drush 
find / -type f -name 'drush' #to find any folders named drush

Drush, , Drush.

Honestly, I would manually install Drush manually , as noted by lfx in my comment. The syntax changes between major versions of Drush, and if you let apt manage it, you can inadvertently update your Drush installation. In addition, by controlling the installation of Drush, you can install different versions of Drush for different sites / users by installing each version of Drush in a different place and using symbolic links for the user shell environment.

0
source

To remove it manually:

rm /var/lib/dpkg/info/drush.*
dpkg --remove --force-remove-reinstreq drush
0
source

All Articles