3

When I run drush self-update, I get the following message:

A newer version of drush, 7.x-5.8, is available. You are currently running drush version 6.0-dev. The update process depends on how you installed drush. Some common update commands are: pear upgrade drush/drush, git pull, drush dl drush --destination=[/path/to/drush].

When I execute pear upgrade drush/drush, I get the following message:

Nothing to upgrade

When I execute sudo drush dl drush --destination=/usr/local/bin/pear/bin (/usr/local/bin/pear/bin is the directory where Drush is found from which), I get the following messages:

Unable to create /usr/local/bin/pear/bin/drush.                                             [error]
Project drush (7.x-5.8) could not be downloaded to /usr/local/bin/pear/bin/drush.

How should I update Drush when installed with pear?

4
  • 1
    i just do pear install drush drush/drush-5.8.0 if you installed it in the default location i find it just overwrites whats there ..... stupid pear (not me, pear :P)
    – tenken
    Jan 8, 2013 at 17:46
  • When I execute pear install drush drush/drush-5.8.0, I get the following error: "drush/drush is already installed and is newer than detected released version 5.8.0."
    – apaderno
    Jan 8, 2013 at 18:16
  • pear uninstall, then install !? hehe. It should not alter $home/.drush at all.
    – tenken
    Jan 8, 2013 at 18:36
  • also i think pear has a --force option ...
    – tenken
    Jan 8, 2013 at 18:43

1 Answer 1

4

Although there is a pear package for Drush-8.x-6.x, if you are going to run this version of Drush I would recommend cloning it from git, and updating it with git pull. You can also check for newer code with git status instead of drush self-update.

Discussions on the deficiencies of drush self-update should probably happen in the Drush issue queue. Briefly, it no longer handles the update operation itself, and while it works well enough when using stable versions of Drush, it is easily confused in other circumstances (e.g. when Drush-7.x-5.8 is newer by date than the 8.x-6.x-dev that you are running, even though 7.x-5.8 is built exclusively from features backported from 8.x-6.x-dev.)

1
  • The fact 6.0-dev means 8.x-6.x-dev explains all. I thought it was a short for 6.x-x.x-dev, and wondered how I could update to 7.x-5.8. :)
    – apaderno
    Jan 10, 2013 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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