2.2.2. RPM

This section describes how to deploy Neo4j using the Neo4j RPM package on Red Hat, CentOS, Fedora, or Amazon Linux distributions.

2.2.2.1. Red Hat / CentOS / Fedora

For distros like Red Hat, CentOS, Fedora, and Amazon Linux the steps are as follows:

  1. Use the following as root to add the repository:

    rpm --import http://debian.neo4j.org/neotechnology.gpg.key
    cat <<EOF>  /etc/yum.repos.d/neo4j.repo
    [neo4j]
    name=Neo4j RPM Repository
    baseurl=http://yum.neo4j.org/stable
    enabled=1
    gpgcheck=1
    EOF
  2. Install Neo4j.

    • To install Neo4j Community Edition as root:

      yum install neo4j-3.4.0
    • To install Neo4j Enterprise Edition as root:

      yum install neo4j-enterprise-3.4.0

2.2.2.2. SUSE

SUSE is not certified for production use. These instructions are provided for convenience for those wishing to use Neo4j in non-production environments.

For SUSE-based distributions the steps are as follows:

  1. Use the following as root to add the repository:

    zypper addrepo --refresh http://yum.neo4j.org/stable neo4j-repository
  2. Install Neo4j.

    • To install Neo4j Community Edition as root:

      zypper install neo4j-3.4.0
    • To install Neo4j Enterprise Edition as root:

      zypper install neo4j-enterprise-3.4.0

2.2.2.3. Non-interactive installation of Neo4j Enterprise Edition

When installing Neo4j Enterprise Edition, you will be required to accept the license agreement before installation is allowed to complete. This is an interactive prompt. If you require non-interactive installation of Neo4j Enterprise Edition, you can indicate that you have read and accepted the license agreement by setting the environment variable NEO4J_ACCEPT_LICENSE_AGREEMENT to yes:

NEO4J_ACCEPT_LICENSE_AGREEMENT=yes yum install neo4j-enterprise-3.4.0

2.2.2.4. Upgrade

For upgrade of any 3.x version of Neo4j to Neo4j 3.4.0, follow instructions in Chapter 5, Upgrade.