Using the Debian repository
The Neo4j Debian repository can be used on Debian or Ubuntu.
To use the repository follow these steps:
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - echo 'deb http://debian.neo4j.org/repo stable/' >/tmp/neo4j.list sudo mv /tmp/neo4j.list /etc/apt/sources.list.d sudo apt-get update
To install the latest Neo4j Community Edition:
sudo apt-get install neo4j
To install the latest Neo4j Enterprise Edition:
sudo apt-get install neo4j-enterprise
If you have any questions, please ask on Stack Overflow
A note about Java 8 on Ubuntu and Debian: Java 8 is not included in Ubuntu 14.04 LTS, or Debian 8 (jessie) and will have to be installed manually prior to installing or upgrading Neo4j to version 3.0 or above. Debian users can find OpenJDK 8 in backports.
Installing other versions
By default you will install the latest Neo4j version. The repository also contains older versions. You can list the available versions with this command:
apt-cache madison neo4j
To install a specific version:
sudo apt-get install neo4j=2.2.5
(Substitute the version that you want. A similar commmand can be used for Enterprise Edition.)
The oldstable repository
Some old versions of Neo4j are missing from the standard repository (stable) and can be found in the oldstable repository instead. Follow these steps if you can't find the version you are looking for following the instructions above.
cp /etc/apt/sources.list.d/neo4j.list /tmp/neo4j.list echo 'deb http://debian.neo4j.org/repo oldstable/' >>/tmp/neo4j.list sudo mv /tmp/neo4j.list /etc/apt/sources.list.d sudo apt-get update
Follow the instructions above to pick a specific version.
The testing repository
Pre-release versions (milestones and release candidates) are available in the testing repository. To install these, follow the instructions above but substitute "testing" for "oldstable".