1

Running on Debian I have updated Drush to version 7:

composer global require drush/drush:7.*

composer global update

But the command 'drush --version' still tells me: Drush Version : 6.2.0

I have looked everywhere but didn't find a solution.

Thanx for any help.

1
  • you can add alias of your new drush, do this vim ~/.bashrc add this line alias drush='path/to/your/new/drush/'
    – shrish
    Commented Jun 12, 2015 at 14:35

1 Answer 1

1

The problem is that the old version of Drush is still in your $PATH, and comes before the new version.

The Drush installation instructions says: Now add Drush to your system path by placing export PATH="$HOME/.composer/vendor/bin:$PATH" into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users). What it does not mention is that changes to your .bashrc file are not immediately reflected in your running system. You need do one of:

  1. Restart.
  2. Close and re-open all of your terminal windows.
  3. Type source ~/.bashrc in all of your open terminal windows.

(Listed in order from easiest and most disruptive, to more work but less disruptive.) Substitute .bash_profile in place of .bashrc if you made your modification there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.