Chapter 6. Installing JBoss EAP by using the RPM installation method
You can install JBoss EAP by using RPM packages on supported installations of Red Hat Enterprise Linux 8, and Red Hat Enterprise Linux 9.
6.1. Subscribing to the JBoss EAP software repository Copy linkLink copied to clipboard!
If you want to install JBoss EAP by using the RPM installation method, you must subscribe to the Red Hat Enterprise Linux Server base software repository, and a minor JBoss EAP repository.
Prerequisites
- You have set up an account on the Red Hat Customer Portal.
- Your JBoss EAP host is running on a supported operating system.
- You have subscribed to the Red Hat Enterprise Linux Server base software repository.
- You have administrator privileges on the server.
Procedure
Enter the Red Hat Subscription Manager.
ImportantTo subscribe to the Red Hat Enterprise Linux server base repository and a minor JBoss EAP repository, enter one of the following commands:
Replace
EAP_MINOR_VERSIONwith your intended JBoss EAP minor version. For example, 8.0.subscription-manager repos --enable=jb-eap-EAP_MINOR_VERSION-for-rhel-RHEL_VERSION-ARCH-rpms
6.2. Installing JBoss EAP by using the RPM installation method Copy linkLink copied to clipboard!
Prerequisites
- You have set up an account on the Red Hat Customer Portal.
- Your JBoss EAP host is running on a supported operating system.
- You have administrator privileges on the server.
- You have subscribed to the Red Hat Enterprise Linux Server base software repository.
- You have subscribed to the JBoss EAP8 software repository.
Procedure
Install JBoss EAP and JDK 17.
dnf groupinstall jboss-eap8Install JBoss EAP and JDK 11. JDK 11 is available for Red Hat Enterprise Linux 8 and later:
Red Hat Enterprise Linux 8:
dnf groupinstall jboss-eap8-jdk11NoteIf the specified version of the JDK is not already installed on the system, the
groupinstallcommand automatically installs this version of the JDK. If a different version of the JDK is already installed, the system contains multiple installed JDK versions after you run the preceding command.If multiple JDK versions are installed on your system after you run the
groupinstallcommand, check which JDK version JBoss EAP is using. By default, JBoss EAP uses the system default JDK.
Modify the default JDK in either of the following ways:
Change system wide configuration by using the alternatives command:
alternatives --config javaChange the JDK that uses JBoss EAP by using the
JAVA_HOMEproperty. Your installation is complete. The defaultEAP_HOMEpath for the RPM installation is/opt/rh/eap8/root/usr/share/wildfly.ImportantWhen you install JBoss EAP by using RPM packages, you cannot configure multiple domain or host controllers on the same machine.
6.3. Configuring JBoss EAP RPM installation as a service on RHEL Copy linkLink copied to clipboard!
You can configure the Red Hat Packet Manager (RPM) installation to run as a service in Red Hat Enterprise Linux (RHEL). An RPM installation of JBoss EAP installs everything that is required to run JBoss EAP as a service
Run the appropriate command for your RHEL, as demonstrated in this procedure. Replace EAP_SERVICE_NAME with either eap8-standalone for a standalone JBoss EAP server, or eap8-domain for a managed domain.
Prerequisites
- You have installed JBoss EAP as an RPM installation.
- You have administrator privileges on the server.
Procedure
For Red Hat Enterprise Linux 8 and later:
systemctl enable EAP_SERVICE_NAME.service
6.4. Changing the software subscription from one JBoss EAP repository to another Copy linkLink copied to clipboard!
You can change the software subscription from one JBoss EAP repository to another based on the following conditions:
- If you are changing to the next minor JBoss EAP version, you can change from a minor repository to another minor repository. For example, you can change from JBoss EAP 8.0 to JBoss EAP 8.1, but you cannot change from JBoss EAP 8.0 to JBoss EAP 8.2.
Prerequisites
- You have installed JBoss EAP by using the RPM installation method.
- You have chosen a repository.
- You have applied all the applicable updates to your JBoss EAP application.
- You have administrator privileges on the server.
Procedure
Unsubscribe from the existing repository and subscribe to the new repository by using the Red Hat Subscription Manager.
subscription-manager repos --disable=EXISTING_REPOSITORY --enable=NEW_REPOSITORY
6.5. Uninstalling JBoss EAP using the RPM installation method Copy linkLink copied to clipboard!
To avoid potential issues, do not uninstall a JBoss EAP installation that you have installed from RPM packages.
Because of the nature of RPM package management, uninstalling JBoss EAP might not completely remove all installed packages and dependencies. Uninstalling JBoss EAP might also leave the system in an inconsistent state because of missing package dependencies.