Using CVS and Drush package manager
| This guide is for installing Drupal and contributed modules in a standard webserver framework consisting of Linux, Apache, MySQL, and PHP (LAMP stack) The following commands should be performed after logging into the server via SSH |
Download using CVS
Drupal
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -d drupaldirectory/ -r CVSTAG drupal
Update with your desired root Drupal directory and current Drupal release CVS tag from http://drupal.org/node/3060/release
For example:cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -d drupal/ -r DRUPAL-6-4 drupal
or
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -d drupal/ -r DRUPAL-5-10 drupal
Drush
Use your desired root Drupal directory and current Drush release CVS tag from http://drupal.org/node/97249/release
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r CVSTAG -d drupaldirectory/sites/all/modules/drush contributions/modules/drush
For example:cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--1-0 -d drupal/sites/all/modules/drush contributions/modules/drush
or
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-5--1-3 -d drupal/sites/all/modules/drush contributions/modules/drush
Web based installation
Drupal
Regular Drupal install procedure
Drush
Include Package Manager and CVS support
Running Drush
Aliases
Add an alias for easy use
alias drush='php sites/all/modules/drush/drush.php'
or specify a path to PHP
alias drush='/usr/local/php5/bin/php
sites/all/modules/drush/drush.php'(this can also go in .profile or .bash_aliases or .bash_profile in your home folder)
UsageInstall modules
cd to your drupal folder
cd drupal
check drush is workingdrush
Examples
drush pm install cvs_deploy
drush pm install views og backup_migrate
Updating
Drupal
Updating Drupal can be done using the same command from Step 1.
Modulesdrush pm update
Optional
CVS Install Themes
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6 -d drupaldirectory/themes/contributions/deco contributions/themes/deco
Choose Module Source
Drush includes internal support for module packages using CVS or Wget,
and some modules may have slightly different versions available by each
method. Enabling different Drush addon modules (listed in the module
administration page) allows choice of download method.
Sources: Checking out from the main repository , Drush
