There are currently four different methods to install Doctrine.

* SVN (subversion)
* SVN externals
* Pear
* Zip-package

It is recommended to download Doctrine via SVN (subversion), because in this case updating is easy. 
If your project is already under version control with SVN, you should choose SVN externals. 


+++ SVN 

The installation of doctrine via SVN is very easy. Just get the latest revision of Doctrine from http://svn.phpdoctrine.org/branches/0.10.

In order to check out Doctrine in the current directory using the **svn** command line tool use the following code:

<code type="bash">
svn co http://svn.phpdoctrine.org/branches/0.10 .
</code>

If you do not have a SVN client, chose one from the list below. Find the **Checkout** option and enter svn.phpdoctrine.org/branches/0.10 in the **path** or **repository url** parameter. There is no need for a username or password to check out Doctrine. 

* [http://tortoisesvn.tigris.org/ TortoiseSVN] a Windows application that  integrates into Windows Explorer
* [http://www.apple.com/downloads/macosx/development_tools/svnx.html svnx] a  Mac OS X GUI svn application 
* Eclipse has SVN integration through the [http://subclipse.tigris.org/ subeclipse] plugin

You can update to the latest version with

<code type="bash">
svn update
</code>

in your doctrine directory.


+++ SVN externals

If your project is under version control with SVN, you should set up doctrine via svn externals. You can do this with the **svn** command line tool:

<code type="bash"> 
svn pe svn:externals /path/to/project
</code>

You have to put the following line in the editor and save the changes.

<code>
doctrine http://svn.phpdoctrine.org/branches/0.10
</code>

Afterwards you can download doctrine with

<code>
svn update
</code>


+++ PEAR

You can install Doctrine via PEAR with the following command:

<code type="bash"> 
pear install http://pear.phpdoctrine.org/Doctrine-0.10.2
</code>


+++ Zip-package

You can download Doctrine as a .zip or .tgz (for Linux) package from http://www.phpdoctrine.org/download.
Simply unzip it to your project directory with your favorite zip tool.

Under Linux you can extract the .tgz package with the following command line instruction:

<code type="bash"> 
tar xzf Doctrine-0.10.1.tgz
</code>

+++ Sandbox Package

Doctrine also provides a special package which is a zero configuration Doctrine implementation. It 
includes a fully featured command line interface for managing your schema files, migrations, 
database connections, data fixtures, and many other features. You can read about the sandbox package 
and how to use it in the [doc utilities :name] chapter under the Sandbox section.

Below you will find the url to a tutorial on how to how to get started using 
Doctrine with the sandbox package. With the sandbox and this tutorial you can get Doctrine up 
and running in under 5 minutes. The tutorial offers example schema files, data fixtures, and a simple 
script for managing a "User" model with Doctrine. Simple create, update, delete functionality.

The tutorial can be found here http://trac.phpdoctrine.org/wiki/MyFirstProject and the sandbox package 
can be downloaded from here http://www.phpdoctrine.org/download