Skip to content

Commit bbe4846

Browse files
authored
Merge pull request #10624 from uncch-rdmc/8856_RHEL_Rocky_9
RHEL/Rocky 9 documentation
2 parents 38a4d06 + 0da04a0 commit bbe4846

3 files changed

Lines changed: 41 additions & 40 deletions

File tree

doc/sphinx-guides/source/installation/prerequisites.rst

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ After following all the steps below, you can proceed to the :doc:`installation-m
1414
Linux
1515
-----
1616

17-
We assume you plan to run your Dataverse installation on Linux and we recommend RHEL or a derivative such as RockyLinux or AlmaLinux, which is the distribution family tested by the Dataverse Project team. Please be aware that while EL8 (RHEL/derivatives) is the recommended platform, the steps below were orginally written for EL6 and may need to be updated (please feel free to make a pull request!). A number of community members have installed the Dataverse Software in Debian/Ubuntu environments.
17+
We assume you plan to run your Dataverse installation on Linux and we recommend RHEL or a derivative such as Rocky Linux, which is the distribution family tested by the Dataverse Project team. These instructions are written for RHEL9 and derivatives, but Dataverse is known to work well in Debian, Ubuntu, and most any modern Linux distribution.
1818

1919
Java
2020
----
@@ -28,9 +28,9 @@ The Dataverse Software should run fine with only the Java Runtime Environment (J
2828

2929
The Oracle JDK can be downloaded from https://www.oracle.com/technetwork/java/javase/downloads/index.html
3030

31-
On a RHEL/derivative, install OpenJDK (devel version) using yum::
31+
On a RHEL/derivative OS, install OpenJDK (devel version) using dnf::
3232

33-
# sudo yum install java-17-openjdk
33+
# sudo dnf install java-17-openjdk
3434

3535
If you have multiple versions of Java installed, Java 17 should be the default when ``java`` is invoked from the command line. You can test this by running ``java -version``.
3636

@@ -106,14 +106,14 @@ Installing PostgreSQL
106106

107107
*For example*, to install PostgreSQL 16 under RHEL9/derivative::
108108

109-
# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
110-
# yum makecache fast
111-
# yum install -y postgresql16-server
112-
# /usr/pgsql-16/bin/postgresql-16-setup initdb
113-
# /usr/bin/systemctl start postgresql-16
114-
# /usr/bin/systemctl enable postgresql-16
109+
# sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
110+
# sudo dnf check-update
111+
# sudo dnf install -y postgresql16-server
112+
# sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
113+
# sudo /usr/bin/systemctl start postgresql-16
114+
# sudo /usr/bin/systemctl enable postgresql-16
115115

116-
For RHEL8/derivative the process would be identical, except for the first two commands: you would need to install the "EL-8" yum repository configuration and run ``yum makecache`` instead.
116+
You may need to disable the OS's built-in postgresql module with ``dnf -qy module disable postgresql``.
117117

118118
Configuring Database Access for the Dataverse Installation (and the Dataverse Software Installer)
119119
=================================================================================================
@@ -147,7 +147,7 @@ Configuring Database Access for the Dataverse Installation (and the Dataverse So
147147

148148
The file ``postgresql.conf`` will be located in the same directory as the ``pg_hba.conf`` above.
149149

150-
- **Important: PostgreSQL must be restarted** for the configuration changes to take effect! On RHEL7/derivative and similar (provided you installed Postgres as instructed above)::
150+
- **Important: PostgreSQL must be restarted** for the configuration changes to take effect! On RHEL9/derivative and similar (provided you installed Postgres as instructed above)::
151151

152152
# systemctl restart postgresql-16
153153

@@ -205,7 +205,7 @@ On operating systems which use systemd such as RHEL/derivative, you may then add
205205

206206
Solr launches asynchronously and attempts to use the ``lsof`` binary to watch for its own availability. Installation of this package isn't required but will prevent a warning in the log at startup::
207207

208-
# yum install lsof
208+
# dnf install lsof
209209

210210
Finally, you need to tell Solr to create the core "collection1" on startup::
211211

@@ -278,6 +278,7 @@ Installing jq
278278

279279
``jq`` is a command line tool for parsing JSON output that is used by the Dataverse Software installation script. It is available in the ``appstream`` repository::
280280

281+
# dnf install epel-release
281282
# dnf install jq
282283

283284
or you may install the latest binary for your OS and platform, available from https://github.com/jqlang/jq/releases
@@ -294,10 +295,10 @@ Installing and configuring ImageMagick
294295

295296
On a Red Hat or derivative Linux distribution, you can install ImageMagick with something like::
296297

297-
# yum install ImageMagick
298+
# dnf install ImageMagick
298299

299300
(most RedHat systems will have it pre-installed).
300-
When installed using standard ``yum`` mechanism, above, the executable for the ImageMagick convert utility will be located at ``/usr/bin/convert``. No further configuration steps will then be required.
301+
When installed using standard ``dnf`` mechanism, above, the executable for the ImageMagick convert utility will be located at ``/usr/bin/convert``. No further configuration steps will then be required.
301302

302303
If the installed location of the convert executable is different from ``/usr/bin/convert``, you will also need to specify it in your Payara configuration using the JVM option, below. For example::
303304

@@ -322,32 +323,35 @@ Installing R
322323

323324
For RHEL/derivative, the EPEL distribution is strongly recommended:
324325

325-
If :fixedwidthplain:`yum` isn't configured to use EPEL repositories ( https://fedoraproject.org/wiki/EPEL ):
326+
If :fixedwidthplain:`dnf` isn't configured to use EPEL repositories ( https://fedoraproject.org/wiki/EPEL ):
327+
328+
RHEL9/derivative users can install the epel-release RPM::
329+
330+
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
326331

327332
RHEL8/derivative users can install the epel-release RPM::
328333

329-
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
334+
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
330335

331-
RHEL7/derivative users can install the epel-release RPM::
336+
Rocky 9 users will need te enable the CodeReady-Builder repository::
332337

333-
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
338+
dnf config-manager --enable crb
334339

335340
RHEL 8 users will need to enable the CodeReady-Builder repository::
336341

337342
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
338343

339-
Rocky or AlmaLinux 8.3+ users will need to enable the PowerTools repository::
344+
Rocky 8 users will need to enable the PowerTools repository::
340345

341346
dnf config-manager --enable powertools
342347

343-
RHEL 7 users will want to log in to their organization's respective RHN interface, find the particular machine in question and:
348+
To compile the modules below, on a RHEL/Rocky-based system you'll minimally need the following packages:
344349

345-
• click on "Subscribed Channels: Alter Channel Subscriptions"
346-
• enable EPEL, Server Extras, Server Optional
350+
dnf install openssl-devel libcurl-devel
347351

348-
Finally, install R with :fixedwidthplain:`yum`::
352+
Finally, install R with :fixedwidthplain:`dnf`::
349353

350-
yum install R-core R-core-devel
354+
dnf install R-core R-core-devel
351355

352356
Installing the required R libraries
353357
===================================
@@ -472,7 +476,7 @@ The following commands are intended to be run as root but we are aware that Pyth
472476

473477
Install Python 3.9::
474478

475-
yum install python39
479+
dnf install python3
476480

477481
Install Counter Processor Python requirements::
478482

doc/sphinx-guides/source/installation/shibboleth.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ We will be "fronting" the app server with Apache so that we can make use of the
3232

3333
We include the ``mod_ssl`` package to enforce HTTPS per below.
3434

35-
``yum install httpd mod_ssl``
35+
``dnf install httpd mod_ssl``
3636

3737
Install Shibboleth
3838
~~~~~~~~~~~~~~~~~~
3939

4040
Installing Shibboleth will give us both the ``shibd`` service and the ``mod_shib`` Apache module.
4141

42-
Install Shibboleth Yum Repo
42+
Install Shibboleth DNF Repo
4343
^^^^^^^^^^^^^^^^^^^^^^^^^^^
4444

45-
The Shibboleth project now provides `a web form <https://shibboleth.net/downloads/service-provider/RPMS/>`_ to generate an appropriate package repository for use with YUM/DNF.
45+
The Shibboleth project now provides `a web form <https://shibboleth.net/downloads/service-provider/RPMS/>`_ to generate an appropriate package repository for use with DNF.
4646

4747
You'll want to copy-paste the form results into ``/etc/yum.repos.d/shibboleth.repo`` or wherever is most appropriate for your operating system.
4848

49-
Install Shibboleth Via Yum
49+
Install Shibboleth Via DNF
5050
^^^^^^^^^^^^^^^^^^^^^^^^^^
5151

5252
Please note that during the installation it's ok to import GPG keys from the Shibboleth project. We trust them.
5353

54-
``yum install shibboleth``
54+
``dnf install shibboleth``
5555

5656
Configure Payara
5757
----------------
@@ -122,7 +122,7 @@ Near the bottom of ``/etc/httpd/conf.d/ssl.conf`` but before the closing ``</Vir
122122
123123
You can download a :download:`sample ssl.conf file <../_static/installation/files/etc/httpd/conf.d/ssl.conf>` to compare it against the file you edited.
124124

125-
Note that ``/etc/httpd/conf.d/shib.conf`` and ``/etc/httpd/conf.d/shibboleth-ds.conf`` are expected to be present from installing Shibboleth via yum.
125+
Note that ``/etc/httpd/conf.d/shib.conf`` and ``/etc/httpd/conf.d/shibboleth-ds.conf`` are expected to be present from installing Shibboleth via dnf.
126126

127127
You may wish to also add a timeout directive to the ProxyPass line within ssl.conf. This is especially useful for larger file uploads as apache may prematurely kill the connection before the upload is processed.
128128

scripts/r/rserve/rserve-setup.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@ else
3939
echo "Rserve password file (/etc/Rserv.pwd) already exists."
4040
fi
4141

42-
if [ ! -f /etc/init.d/rserve ]
42+
if [ ! -f /usr/lib/systemd/system/rserve.service ]
4343
then
44-
echo "Installing Rserve startup file."
45-
install rserve-startup.sh /etc/init.d/rserve
46-
chkconfig rserve on
47-
echo "You can start Rserve daemon by executing"
48-
echo " service rserve start"
49-
echo
50-
echo "If this is a RedHat/CentOS 7/8 system, you may want to use the systemctl file rserve.service instead (provided in this directory)"
44+
echo "Installing Rserve systemd unit file."
45+
cp rserve.service /usr/lib/systemd/system
46+
systemctl start rserve
47+
systemctl enable rserve
5148
else
52-
echo "Rserve startup file already in place."
49+
echo "Rserve systemd unit file already in place."
5350
fi
5451

5552
if [ ! -d /var/run/rserve ]

0 commit comments

Comments
 (0)