diff --git a/modules/ROOT/pages/installation/linux/rpm.adoc b/modules/ROOT/pages/installation/linux/rpm.adoc index 4ed932336..4846cb94f 100644 --- a/modules/ROOT/pages/installation/linux/rpm.adoc +++ b/modules/ROOT/pages/installation/linux/rpm.adoc @@ -31,18 +31,20 @@ Installation instructions can be found on the manufacturer's website: [[linux-rpm-install-standard]] === Set up the repository -To add the Neo4j repository to the package manager, run the following command as a sudo user: - -[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 ---- -Create a `neo4j.repo` file: - -[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/latest @@ -50,7 +52,7 @@ enabled=1 gpgcheck=1 EOF ---- - ++ [NOTE] ==== If you are upgrading from Neo4j 5.x or earlier, you may need to clear the package manager cache before Neo4j packages become available: @@ -58,13 +60,20 @@ If you are upgrading from Neo4j 5.x 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} ---- @@ -75,7 +84,7 @@ Accept either the commercial or the evaluation license agreement before running 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} ---- @@ -86,7 +95,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} ---- @@ -98,7 +107,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/latest neo4j-repository ---- @@ -107,7 +116,7 @@ zypper addrepo --refresh https://yum.neo4j.com/stable/latest neo4j-repository + * Community Edition + -[source, shell, subs="attributes"] +[source, bash, subs="attributes"] ---- zypper install neo4j-{neo4j-version-exact} ---- @@ -118,7 +127,7 @@ Accept either the commercial or the evaluation license agreement before running 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} ---- @@ -127,7 +136,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} ---- @@ -176,7 +185,7 @@ This must be one single command, and Neo4j Cypher Shell must be the first packag + * 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 ---- @@ -186,14 +195,14 @@ rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-versi 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 ---- @@ -203,7 +212,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 ---- @@ -227,7 +236,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