Using apt-get to download a specific Neo4j debian package

By default, using apt-get to install Neo4j allows you to grab the current and previous stable releases.
However, if you would like to install an older version, you can specify that.

For reference, the Debian repo is located here: http://debian.neo4j.org/

From the command line, run the following as root:

root@neo4j:~# apt-cache madison neo4j
 neo4j | 2.2.4 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.2.3 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.2.2 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.2.1 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.2.0 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.8 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.7 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.6 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.5 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.4 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.3 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.2 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.1 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.1.0 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.0.4 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.0.3 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.0.2 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.0.1 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 2.0.0 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.9.5 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.9.4 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.9.2 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.9.1 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.9 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.8.2 | http://debian.neo4j.org/repo/ stable/ Packages
 neo4j | 1.8.1 | http://debian.neo4j.org/repo/ stable/ Packages

Choose from the available packages, and decide whether you want Enterprise or Community.
To install neo4j 2.3.0:

# Enterprise:

root@neo4j:~# apt-get install neo4j-enterprise=2.3.0
# Community:

root@neo4j:~# apt-get install neo4j=2.3.0

I am new to this. May I ask if this can be applied on Windows? I am trying to install Neo4j 2.0.4 on my pc.

is there a reason to install Neo4j 2.0.4 which is almost 6 years old software

I have a database that was made with this version 2.0.4 and unfortunately I failed to transfer the database to the newer version of Neo4j. Is there any way to access this database?

are you not able to download/install 2.0.4 by running

sudo apt-get install neo4j=2.0.4

I would like to install it on my Windows instead of Debian.