9
9
CrateDB on Red Hat, SUSE, and Derivates
10
10
#######################################
11
11
12
- Install CrateDB RPM _ packages using the YUM _ package manager .
12
+ Install CrateDB RPM _ packages using the DNF _, ZYpp _, or YUM _ package managers .
13
13
14
14
This installation method is suitable for RedHat Enterprise Linux (RHEL) and compatible
15
15
systems like Fedora, CentOS, Rocky Linux, AlmaLinux, AWS Linux, Oracle Linux, or
@@ -19,38 +19,51 @@ Scientific Linux. Installation also works on openSUSE and SUSE Linux Enterprise
19
19
Configure package repository
20
20
============================
21
21
22
- You will need to configure your system to register with and trust packages
23
- from the CrateDB package repository::
24
-
25
- # Install prerequisites.
26
- yum install sudo
27
-
28
- # Import the public GPG key for verifying the package signatures.
29
- sudo rpm --import https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate
30
-
31
- # Register with the CrateDB package repository.
32
- sudo rpm -Uvh https://cdn.crate.io/downloads/yum/7/x86_64/crate-release-7.0-1.x86_64.rpm
33
-
34
- The command above will install the ``/etc/yum.repos.d/crate.repo `` package
35
- repository configuration file.
22
+ To register with the CrateDB package repository, create a file called ``cratedb.repo ``
23
+ in the ``/etc/yum.repos.d/ `` directory for RedHat based distributions, or in the
24
+ ``/etc/zypp/repos.d/ `` directory for OpenSuSE based distributions, containing::
25
+
26
+ [cratedb-ce-stable]
27
+ name=CrateDB RPM package repository - $basearch - Stable
28
+ baseurl=https://cdn.crate.io/downloads/yum/7/$basearch
29
+ enabled=0
30
+ gpgcheck=1
31
+ gpgkey=https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate
32
+ autorefresh=1
33
+ type=rpm-md
34
+
35
+ [cratedb-ce-testing]
36
+ name=CrateDB RPM package repository - $basearch - Testing
37
+ baseurl=https://cdn.crate.io/downloads/yum/testing/7/$basearch
38
+ enabled=0
39
+ gpgcheck=1
40
+ gpgkey=https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate
41
+ autorefresh=1
42
+ type=rpm-md
36
43
37
44
.. NOTE ::
38
45
39
- CrateDB provides both *stable release * and *testing release * channels. You
40
- can read more about the `release workflow `_.
46
+ The configured repository is disabled by default. This eliminates the
47
+ possibility of accidentally upgrading CrateDB when upgrading the rest
48
+ of the system. Each install or upgrade command must explicitly enable
49
+ the repository as indicated in the sample installation command below.
41
50
42
- By default, yum _ (Red Hat's package manager) will use the stable
43
- repository. This is because the testing repository is disabled.
44
- If you would like to enable the testing repository, edit the ``crate.repo ``
45
- file and set ``enabled=1 `` within the ``[crate-testing] `` section.
51
+ CrateDB provides both *stable release * and *testing release * channels. You
52
+ can read more about the `release workflow `_.
46
53
47
54
48
55
Install CrateDB
49
56
===============
50
57
51
58
With everything set up, you can install CrateDB::
52
59
53
- sudo yum install crate
60
+ sudo dnf install --enablerepo=cratedb-ce-stable crate
61
+
62
+ .. TIP ::
63
+
64
+ On older Red Hat and CentOS installations, please use the ``yum `` command
65
+ instead of ``dnf ``. On SUSE based installations, please use the ``zypper ``
66
+ command.
54
67
55
68
56
69
Configure CrateDB
@@ -60,10 +73,25 @@ Please visit the :ref:`install-configure` documentation section to learn
60
73
about the location and meaning of CrateDB's configuration files.
61
74
62
75
76
+ Trust signing key
77
+ =================
78
+
79
+ In order to trust the package signing key upfront, before being prompted
80
+ to do it on the first installation of CrateDB, you can also import it
81
+ into your repository keyring, like that::
82
+
83
+ # Install prerequisites.
84
+ yum install sudo
85
+
86
+ # Import the public GPG key for verifying the package signatures.
87
+ sudo rpm --import https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate
88
+
63
89
64
90
.. include :: _control-linux.rst
65
91
.. include :: _post-install.rst
66
92
93
+ .. _DNF : https://en.wikipedia.org/wiki/DNF_(software)
67
94
.. _release workflow : https://github.com/crate/crate/blob/master/devs/docs/release.rst
68
95
.. _RPM : https://en.wikipedia.org/wiki/RPM_Package_Manager
69
96
.. _YUM : https://en.wikipedia.org/wiki/Yum_(software)
97
+ .. _ZYpp : https://en.wikipedia.org/wiki/ZYpp
0 commit comments