From ff41e49e937e110c4246896d5d59c47edf823ef2 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Fri, 11 Jul 2025 15:52:00 +0100 Subject: [PATCH] Update the Set up the repository for Linux rpm (#2475) --- .../ROOT/pages/installation/linux/rpm.adoc | 53 +++++++++++-------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/modules/ROOT/pages/installation/linux/rpm.adoc b/modules/ROOT/pages/installation/linux/rpm.adoc index cb57b970e..2c1147f0d 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -50,18 +50,20 @@ Installation instructions can be found on the manufacturer's website: [[linux-rpm-install-standard]] === Set up the repository -To use the repository for generally available versions of Neo4j, run the following as `root` to add the repository: - -[source, shell, subs="attributes"] +. Import the Neo4j GPG public key into the system’s RPM keyring. +The key is required to verify the authenticity of the Neo4j packages you will install. ++ +[source, bash] ---- rpm --import https://debian.neo4j.com/neotechnology.gpg.key ---- -To create a `neo4j.repo` file, run the following command: - -[source, shell, subs="attributes"] +. Create a `neo4j.repo` file in the `/etc/yum.repos.d/` directory. +This file contains the repository configuration for Neo4j. ++ +[source, bash] ---- -cat << EOF > /etc/yum.repos.d/neo4j.repo +cat < /etc/yum.repos.d/neo4j.repo [neo4j] name=Neo4j RPM Repository baseurl=https://yum.neo4j.com/stable/{neo4j-version} @@ -69,7 +71,7 @@ enabled=1 gpgcheck=1 EOF ---- - ++ [NOTE] ==== If you are upgrading from Neo4j 4.4 or earlier, you may need to clear the package manager cache before Neo4j packages become available: @@ -77,13 +79,20 @@ If you are upgrading from Neo4j 4.4 or earlier, you may need to clear the packag `yum clean dbcache` ==== +. Verify that the Neo4j repository is set up correctly by listing the available Neo4j packages versions: ++ +[source, bash] +---- +yum list neo4j --showduplicates +---- + === Install Neo4j Install Neo4j as `root` using the following commands depending on which edition you are using: * Community Edition + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- yum install neo4j-{neo4j-version-exact} ---- @@ -94,7 +103,7 @@ From Neo4j 5.4 onwards, you are required to accept either the commercial or the The following are examples of using an interactive prompt and a non-interactive installation: + .Interactive installation of Enterprise Edition under the commercial license -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- yum install neo4j-enterprise-{neo4j-version-exact} ---- @@ -105,7 +114,7 @@ This should be done in the same line as the package is installed, to ensure bash As in the following example: + .Non-interactive installation of Enterprise Edition under the commercial license -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes yum install neo4j-enterprise-{neo4j-version-exact} ---- @@ -117,7 +126,7 @@ For SUSE-based distributions, the steps are as follows: . Use the following as `root` to add the repository: + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- zypper addrepo --refresh https://yum.neo4j.com/stable/{neo4j-version} neo4j-repository ---- @@ -126,7 +135,7 @@ zypper addrepo --refresh https://yum.neo4j.com/stable/{neo4j-version} neo4j-repo + * Community Edition + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- zypper install neo4j-{neo4j-version-exact} ---- @@ -137,7 +146,7 @@ From Neo4j 5.4 onwards, you are required to accept either the commercial or the The following are examples of using an interactive prompt and a non-interactive installation: + .Interactive installation of Enterprise Edition under the commercial license -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- zypper install neo4j-enterprise-{neo4j-version-exact} ---- @@ -146,7 +155,7 @@ You have to choose either a link:https://legal.neo4j.com/[commercial license] or For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example: + .Non-interactive installation of Enterprise Edition under the commercial license -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes zypper install neo4j-enterprise-{neo4j-version-exact} ---- @@ -201,7 +210,7 @@ For later versions, you can install them separately but still need to install Cy + * Community Edition + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-version-exact}-1.noarch.rpm ---- @@ -211,14 +220,14 @@ rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-versi From Neo4j 5.4 onwards, you are required to accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition. The following example uses an interactive prompt: + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm ---- You have to choose either a link:https://legal.neo4j.com/[commercial license] or an link:https://neo4j.com/terms/enterprise_us/[evaluation license] before the interactive installation is allowed to complete. For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example: + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm ---- @@ -228,7 +237,7 @@ NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exa To enable Neo4j to start automatically on system boot, run the following command: -[source, shell] +[source, bash] ---- systemctl enable neo4j ---- @@ -252,7 +261,7 @@ Follow these steps to uninstall Neo4j: . (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data. . Uninstall Neo4j: + -[source, shell] ---- +[source, bash] +---- sudo yum remove neo4j ---- \ No newline at end of file +---- \ No newline at end of file