Is there a way to exclude a module from a Drush update so it can be ignored when running eg 'drush up' ?

I ask because Rules 2.8 is causing problems with Drupal Commerce but it would be great if everything else could still be updated with Drush.

marked as duplicate by Free Radical, Krishna Mohan, Mołot, Scott Joudry, sanzante May 14 '15 at 11:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can use the following command:

drush pm-update --lock=modulename

There is a post here about it: http://blog.wassill.eu/en/blog/short-excludes-modules-drush-update-09-04-2013

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