Adding the Debian repository

The Neo4j Debian repository can be used on Debian and Debian-based distributions like Ubuntu.

Documentation for the Neo4j 3.0 (and above) Debian package is available here.

This repository

To set up a repository that will always have the very latest version of Neo4j, run:

wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
    

To avoid the risk of the apt package manager accidentally forcing a database upgrade, different major and minor releases of Neo4j are available separately inside the repository. When adding the Neo4j repository to apt, you must specify the major and minor version branch you wish to use.

Here are some examples:

Just give me the latest Neo4j versions

This is a good place to start if you are unsure, but we do not recommend this for production or business critical installations:

wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
    

Neo4j version 4.0

wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 4.0' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
    

Neo4j version 3.5

wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 3.5' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
    

Neo4j versions before 3.4

Versions of Neo4j before 3.4 are all grouped together under the legacy label:
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable legacy' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
    

Installing Neo4j

To install Neo4j Community Edition:

sudo apt-get install neo4j
    

To install Neo4j Enterprise Edition:

sudo apt-get install neo4j-enterprise
    

If you have any questions, please check the full Debian installation instructions or ask on Stack Overflow

A note about Java 8: 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. Please see the manual for more details.

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 list -a neo4j
    

To install a specific version:

Neo4j Debian package naming and versions follow Debian policy on [versioning](https://www.debian.org/doc/debian-policy/#s-f-version).

Starting with Neo4j 3.1.8, 3.2.9, 3.3.3 we include an epoch 1: as part of the Debian package version.

sudo apt-get install neo4j=1:3.3.5
    
To install patches up until version 3.3.2, 3.2.8, 3.1.7, use a version string without epoch, for example:
    
sudo apt-get install neo4j=3.3.2

(Substitute the version that you want. A similar command can be used for Enterprise Edition.)

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 "stable".