apt-get Install drush

How do you install drush in Linux using apt-get command?

How to Install drush with apt-get?

apt-get install drush -y

Install Drush  Command

Here is a tutorial to learn how to install drush using apt-get command.

Step 1: Open terminal with su access and enter the command as shown below:
apt-get install drush -y

Step 2: After completion, the install command exits and instructs the user to restart the running instances of drush if it is running already.

Result of the Command Execution shown below:

root@hiox:~ apt-get install drush -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libcache cache perl courier authlib libproc processtable perl php fpdf
libdatetime format mail perl libdevel symdump perl libsm dev libchart perl
libnet daemon perl libsys cpuload perl libdb je java junit4 pure ftpd common
libnet ssleay perl libcrypt openssl rsa perl rpm2cpio pure ftpd mysql
postgresql 8.4 libyaml tiny perl bind9 libexception class perl dx doc
courier imap ssl libice dev eclipse jdt realpath libfilesys df perl
libauthen sasl perl sasl2 bin libdb4.7 java eclipse platform data
libunshield0 emacs23 bin common libproc process perl libconvert tnef perl
libio stringy perl db4.8 util libgcj bc gcj 4.4 base libreadonly perl
libclone perl libpthread stubs0 libpam unix2 eclipse pde libjtidy java
libgd gd2 perl libapache2 mod log sql ssl libicu4j java courier base
eclipse rcp libapache2 mod log sql mysql libservlet2.4 java dxsamples
libdb4.7 java gcj libsox fmt base rrdtool clamav mysql server bind9utils
libossp uuid perl junit php5 libreadonly xs perl libcrypt ssleay perl
unshield libsox fmt alsa eclipse plugin cvs libdbi perl ncftp
libjson xs perl libdevel stacktrace perl libarchive zip perl
libmime tools perl libstring shellquote perl courier pop ssl
liblog log4perl perl libnusoap php librpmio0 libjson perl librpm0 rpm common
librrd4 gcj 4.4 jre lib libdshconfig1 libipc sharelite perl gettext base
libhtml template perl libjs prototype clamav base dtc common
libperl6 junction perl libclamav6 libfcgi perl libcommons compress java
libnet jabber perl php5 gd x11proto kb dev libdvbpsi5 libebox libgcj10
libfile mmagic perl libdatetime timezone perl php mail mime
libfile slurp perl libapache2 reload perl libid3 3.8.3c2a
libmail rfc822 address perl libdatetime format w3cdtf perl courier pop tcsh
xtrans dev libxml stream perl php xml serializer libnet cidr perl libxcrypt1
libelf1 courier ssl gettext sbox dtc ant libnss mysql bg php pear
x11proto input dev default jdk libjsch java libgnome2 gconf perl
libsoap lite perl php5 curl libt1 5 jarwrapper cvs libjs scriptaculous
libxml rss perl ant optional libparams validate perl libbsd resource perl
libpam mysql expect libfile tail perl libreadline5 mlmmj libxt dev
libnet server perl libhdf4 0 postgresql common libdbd mysql perl
libclass container perl libdatetime perl liblog dispatch perl pax lesstif2
sat4j postfix mysql postgresql libsys cpu perl libcommons el java
postgresql client 8.4 libcompress raw zlib perl cabextract
courier authdaemon libdatetime locale perl libapache2 mod perl2 webalizer
libgsm1 libxau dev libdx4 rpm courier authlib userdb librpmbuild0
libtask weaken perl courier imap sox courier maildrop mysql client
libslf4j java libasm3 java libnet xmpp perl dwm tools emacsen common
libplrpc perl libregexp java wwwconfig common php xml parser mhonarc
libdbd pg perl fastjar clamav freshclam libjasper java
libapache2 mod log sql libmail dkim perl emacs23 libconvert uulib perl
chrootuid postgresql client common libdb4.6 libdb4.7 libberkeleydb perl
ant optional gcj libpq5 amavisd new libid3tag0 libio multiplex perl
libhamcrest java liblucene2 java libx11 dev libequinox osgi java
liblist moreutils perl libclass data inheritable perl libintl perl patch
eclipse platform libgcj common libcommon sense perl courier authlib mysql
php crypt cbc libsox1a libnet libidn perl libapache singleton perl
emacs23 common libxcb1 dev openjdk 6 jdk libconvert binhex perl ant gcj
libcommons digester java clamav daemon libio socket ssl perl
libhtml mason perl libjetty java libossp uuid16 php mail mimedecode
librsync1 openbsd inetd libjline java mysql server 5.1
libclass singleton perl libnet1 x11proto core dev javascript common
libxdmcp dev libpthread stubs0 dev libunix syslog perl
libcrypt openssl bignum perl mysql client 5.1 libnids1.21 libnetcdf4
Use 'apt-get autoremove' to remove them.
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 49 not upgraded.
Need to get 80.6kB of archives.
After this operation, 430kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid/universe drush 2.0 6 [80.6kB]
Fetched 80.6kB in 0s (96.4kB/s)
Selecting previously deselected package drush.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 195565 files and directories currently installed.)
Unpacking drush (from .../archives/drush_2.0 6_all.deb) ...
Processing triggers for man db ...
Setting up drush (2.0 6) ...

Related Topics

Apt Get Commands