Neo4j Stable Yum Repo
Documentation for the Neo4j RPM package is available here.
First, import our signing key:
rpm --import https://debian.neo4j.com/neotechnology.gpg.key
Then, you will need to add our yum repo to /etc/yum.repos.d/neo4j.repo.
To avoid the risk of the yum 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 yum, you must specify the major and minor version branch you wish to use.
Here are some examples:
Neo4j latest
cat </etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j Yum Repo baseurl=https://yum.neo4j.com/stable/latest enabled=1 gpgcheck=1 EOF
Neo4j 5
cat <<EOF> /etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j Yum Repo baseurl=https://yum.neo4j.com/stable/5 enabled=1 gpgcheck=1 EOF
Neo4j 4.4
cat <<EOF> /etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j Yum Repo baseurl=https://yum.neo4j.com/stable/4.4 enabled=1 gpgcheck=1 EOF
Neo4j 4.3
cat <This numbering scheme continues down to major.minor version 3.4./etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j Yum Repo baseurl=https://yum.neo4j.com/stable/4.3 enabled=1 gpgcheck=1 EOF
Neo4j versions before 3.4
Versions of Neo4j before 3.4 are all grouped together under thelegacy label:
cat </etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j Yum Repo baseurl=https://yum.neo4j.com/stable/legacy enabled=1 gpgcheck=1 EOF
Installing Neo4j
To install the Neo4j Community Edition:
sudo yum install neo4j
To install the Neo4j Enterprise Edition:
sudo yum install neo4j-enterprise
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:
yum search --showduplicates neo4j
To install a specific version:
The full version number must be specified, including major, minor and patch version.
For example, to install Neo4j Community 3.5.5:
sudo yum install neo4j-3.5.5
For example, to install Neo4j Enterprise 4.0.0:
sudo yum install neo4j-enterprise-4.0.0