From 76928c0bfe7328e269014d1aa45f1a446e951327 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 10 Apr 2024 18:27:38 +0200 Subject: [PATCH] Installation: Update section about installing RPM packages Registering with the package repository using the `crate-release-7.0-1.x86_64.rpm` packages and friends is being deprecated. It is advised to configure the RPM repository manually instead. --- docs/install/redhat.rst | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/install/redhat.rst b/docs/install/redhat.rst index a0300b0b..18e055b8 100644 --- a/docs/install/redhat.rst +++ b/docs/install/redhat.rst @@ -28,11 +28,27 @@ from the CrateDB package repository:: # Import the public GPG key for verifying the package signatures. sudo rpm --import https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate - # Register with the CrateDB package repository. - sudo rpm -Uvh https://cdn.crate.io/downloads/yum/7/x86_64/crate-release-7.0-1.x86_64.rpm - -The command above will install the ``/etc/yum.repos.d/crate.repo`` package -repository configuration file. +To register with the CrateDB package repository, create a file called ``cratedb.repo`` +in the ``/etc/yum.repos.d/`` directory for RedHat based distributions, or in the +``/etc/zypp/repos.d/`` directory for OpenSuSE based distributions, containing:: + + [cratedb-stable] + name=CrateDB RPM package repository - $basearch - Stable + baseurl=https://cdn.crate.io/downloads/yum/7/$basearch + enabled=1 + gpgcheck=1 + gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-crate + autorefresh=1 + type=rpm-md + + [cratedb-testing] + name=CrateDB RPM package repository - $basearch - Testing + baseurl=https://cdn.crate.io/downloads/yum/testing/7/$basearch + enabled=0 + gpgcheck=1 + gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-crate + autorefresh=1 + type=rpm-md .. NOTE:: @@ -41,8 +57,8 @@ repository configuration file. By default, yum_ (Red Hat's package manager) will use the stable repository. This is because the testing repository is disabled. - If you would like to enable the testing repository, edit the ``crate.repo`` - file and set ``enabled=1`` within the ``[crate-testing]`` section. + If you would like to enable the testing repository, edit the ``cratedb.repo`` + file and set ``enabled=1`` within the ``[cratedb-testing]`` section. Install CrateDB