Installing Drush v3 in Centos 6

Here are notes I gathered on steps that successfully installed Drush version 3 in my Centos 6.

Move to home dir
cd ~

Remove current drush (if existent)
rm -rf ~/.drush/

Create drush directory (and hide it)
mkdir ~/.drush/

Move to new dir
cd ~/.drush/

Get Drush v3
curl -C - -O -s http://ftp.drupal.org/files/projects/drush-All-versions-3.0.tar.gz

Extract Drush v3
tar -xf drush*.tar.gz

Bin Drush tar
rm -f drush-All*.tar.gz

Pear install console_table
cd drush/includes
curl -C - -O -s http://download.pear.php.net/package/Console_Table-1.1.3.tgz

Extract Pear
tar -xf Console_Table*.tgz

Copy the file
cp Console_Table-1.1.3/Table.php table.inc

rm -r Console_Table-1.1.3
rm -f Console_Table*.tgz

Make drush command executable
cd ~/.drush/
chmod u+x drush/drush

Alias drush and put in bash profile
echo "alias drush='~/.drush/drush/drush'" >> ~/.bash_profile

'Source' the .bash_profile file so updates are made
source ~/.bash_profile

Make sure that we alias drush just in case source does not work
alias drush='~/.drush/drush/drush'

You should see three OK(s) below if the steps below properly executed.

Update Drush using Drush
~/.drush/drush/drush dl drush

Update drush_make and provision in drush/commands
~/.drush/drush/drush dl drush_make
~/.drush/drush/drush dl provision

Move updated additions to correct directory
mv ~/.drush/provision ~/.drush/drush/commands/
mv ~/.drush/drush_make ~/.drush/drush/commands/

You are done and drush is ready to use.

5 comments:

Anonymous said...

First of all I would like to say great blog! I had a quick question which I'd like to ask if you do not mind. I was curious to find out how you center yourself and clear your thoughts prior to writing. I have had difficulty clearing my mind in getting my thoughts out. I truly do enjoy writing but it just seems like the first 10 to 15 minutes tend to be lost just trying to figure out how to begin. Any ideas or tips? Cheers!

My web page: Path of Exile Gameplay

Anonymous said...

What's up colleagues, pleasant post and nice arguments commented at this place, I am genuinely enjoying by these.

Also visit my web page: Marvel Universe Online

Anonymous said...

Thank you for the good writeup. It actually was once a enjoyment account it.
Glance complex to more delivered agreeable from you! By the way, how could we
be in contact?

Also visit my web-site :: Gameplay

Anonymous said...

Having read this I believed it was really enlightening. I appreciate you spending some time and
energy to put this article together. I once again find myself spending a
lot of time both reading and commenting. But so what, it was still worthwhile!


My homepage Wireless Redstone Mod

Anonymous said...

It is truly a great and helpful piece of information.
I'm happy that you shared this helpful info with us. Please stay us informed like this. Thanks for sharing.

My web page - bukkit Setup