How to lock a Drupal module or theme from being upgraded with Drush

If you use Drush for Drupal code updates, and find that the latest version of a module or theme is causing issues on your site, you can freeze that module from being upgraded until the issue is resolved with the following simple command:

drush up module_name --lock=module_name

Pages