Skip to content

Commit

Permalink
Installation: Update section about installing RPM packages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amotl committed Apr 10, 2024
1 parent 8a7bba0 commit 76928c0
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions docs/install/redhat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand All @@ -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
Expand Down

0 comments on commit 76928c0

Please sign in to comment.