Don't use the thead-light class as it overrides the dark/light mode.
[pgweb.git] / templates / pages / download / linux / redhat.html
blob32adc903ac18e8f11beb95b3b56cbb5518078631
1 {%extends "base/page.html"%}
2 {%block title%}Linux downloads (Red Hat family){%endblock%}
3 {%block extrahead%}
4 <script type="text/javascript" src="/download/js/yum.js?{{gitrev}}"></script>
5 {%endblock%}
6 {%block contents%}
8 <h1>Linux downloads (Red Hat family) <img class="logo" src="/media/img/redhat.svg" alt="Red Hat Logo" /></h1>
9 <p>
10 The Red Hat family of distributions includes:
11 </p>
12 <p>
13 <ul>
14 <li>Red Hat Enterprise Linux</li>
15 <li>Rocky Linux</li>
16 <li>CentOS (7 and 6 only)</li>
17 <li>Fedora</li>
18 <li>Oracle Linux</li>
19 </ul>
20 </p>
21 <p>and others.</p>
22 <p>
23 PostgreSQL is available on these platforms by default. However,
24 each version of the platform normally "snapshots" a specific version of
25 PostgreSQL that is then supported throughout the lifetime of this platform.
26 Since this can often mean a different version than preferred, the PostgreSQL
27 project provides a <a href="#yum">repository</a> of packages of all
28 supported versions for the most common distributions.
29 </p>
31 <a name="yum"></a>
32 <h2>PostgreSQL Yum Repository</h2>
33 <p>
34 The <a href="https://yum.postgresql.org" target="_blank" rel="noopener">PostgreSQL Yum Repository</a> will integrate
35 with your normal systems and patch management, and provide automatic
36 updates for all supported versions of PostgreSQL throughout the support
37 <a href="/support/versioning/">lifetime</a> of PostgreSQL.
38 </p>
39 <p>
40 The PostgreSQL Yum Repository currently supports:
41 </p>
42 <p>
43 <ul>
44 <li>Red Hat Enterprise Linux</li>
45 <li>Rocky Linux</li>
46 <li>CentOS (7 and 6 only)</li>
47 <li>Oracle Linux</li>
48 <li>Fedora<sup>*</sup></li>
49 </ul>
50 </p>
51 <p><strong><sup>*</sup>Note</strong>: due to the shorter support cycle
52 on Fedora, all supported versions of PostgreSQL are not available on this platform. We do not recommend
53 using Fedora for server deployments.
54 </p>
55 <p>
56 To use the PostgreSQL Yum Repository, follow these steps:
57 </p>
58 <ol>
59 <li>Select version: <select id="version" class="custom-select"></select><br/></li>
60 <li>Select platform: <select id="platform" class="custom-select"></select></li>
61 <li>Select architecture: <select id="arch" class="custom-select"></select></li>
62 <li>Copy, paste and run the relevant parts of the setup script:
63 <div class="pg-script-container">
64 <pre id="script-box" class="code"></pre>
65 <button id="copy-btn" class="pg-script-copy-btn">Copy Script</button>
66 </div>
67 </li>
68 </ol>
70 <h2>Included in Distribution</h2>
71 <p>
72 These distributions all include PostgreSQL by default. To install
73 PostgreSQL from these repositories, use the <var>yum</var> command on RHEL 6 and 7:
74 </p>
75 <p>
76 <code>
77 yum install postgresql-server
78 </code>
79 </p>
80 <p>
81 or <var>dnf</var> command on RHEL 8 and Fedora:
82 </p>
83 <p>
84 <code>
85 dnf install postgresql-server
86 </code>
87 </p>
88 <p>
89 Which version of PostgreSQL you get will depend on the version of
90 the distribution:
91 </p>
92 <table class="table table-striped">
93 <thead>
94 <tr>
95 <th>Distribution</th>
96 <th>Version</th>
97 </tr>
98 </thead>
99 <tbody>
100 <tr>
101 <th scope="row">RHEL / Rocky Linux 9</th>
102 <td>13</td>
103 </tr>
104 <tr>
105 <th scope="row">RHEL / Rocky Linux / OL 8</th>
106 <td>13, 12, 10 and 9.6 via modules</td>
107 </tr>
108 <tr>
109 <th scope="row">RHEL / CentOS / SL / OL 7</th>
110 <td>9.2 (also supplies package rh-postgresql10, rh-postgresql96, rh-postgresql95 and rh-postgresql94 via SCL)</td>
111 </tr>
112 <tr>
113 <th scope="row">RHEL / CentOS / SL / OL 6</th>
114 <td>8.4 (also supplies package rh-postgresql96, via SCL)</td>
115 </tr>
116 <tr>
117 <th scope="row">Fedora 37</th>
118 <td>14</td>
119 </tr>
120 <tr>
121 <th scope="row">Fedora 36</th>
122 <td>14</td>
123 </tr>
124 </tbody>
125 </table>
127 Other Red Hat family distributions may ship a different version of
128 PostgreSQL by default, check with your distribution vendor to be sure.
129 </p>
132 The repository contains many different packages including third party
133 addons. The most common and important packages are (substitute the
134 version number as required):
135 </p>
136 <table class="table table-striped">
137 <tbody>
138 <tr>
139 <th scope="row">postgresql-client</th>
140 <td>libraries and client binaries</td>
141 </tr>
142 <tr>
143 <th scope="row">postgresql-server</th>
144 <td>core database server</td>
145 </tr>
146 <tr>
147 <th scope="row">postgresql-contrib</th>
148 <td>additional supplied modules</td>
149 </tr>
150 <tr>
151 <th scope="row">postgresql-devel</th>
152 <td>libraries and headers for C language development</td>
153 </tr>
154 </tbody>
155 </table>
157 <h3>Post-installation</h3>
159 Due to policies for Red Hat family distributions, the PostgreSQL installation
160 will not be enabled for automatic start or have the database initialized
161 automatically. To make your database installation complete, you need to
162 perform the following steps, based on your distribution:
163 <h4>For RHEL / Rocky Linux / CentOS / SL / OL 7, 8, 9 or Fedora 36 and later derived distributions:</h4>
164 <pre class="code">
165 postgresql-setup --initdb
166 systemctl enable postgresql.service
167 systemctl start postgresql.service
168 </pre>
169 <h4>For RHEL / CentOS / SL / OL 6</h4>
170 <pre class="code">
171 service postgresql initdb
172 chkconfig postgresql on
173 </pre>
174 </p>
176 <h2>Direct RPM download</h2>
178 If you cannot, or do not want to, use the yum based installation method,
179 all the RPMs that are in the yum repository are available for
180 <a href="https://yum.postgresql.org/rpmchart/">direct download</a>
181 and manual installation as well.
182 </p>
183 {%endblock%}