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 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. Important To 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_VERSION with your intended JBoss EAP minor version. For example, 8.0. Additional resources Red Hat JBoss Enterprise Application Platform JBoss EAP 8 Supported Configurations Setting up an account on the Red Hat customer portal Red Hat Subscription Management How to subscribe through the subscription manager For more information about changing the JAVA_HOME property, see the RPM Service Configuration Properties section of the Configuration Guide. 6.2. Installing JBoss EAP by using the RPM installation method 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. Install JBoss EAP and JDK 11. JDK 11 is available for Red Hat Enterprise Linux 8 and later: Red Hat Enterprise Linux 8: Note If the specified version of the JDK is not already installed on the system, the groupinstall command 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 groupinstall command, 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: Change the JDK that uses JBoss EAP by using the JAVA_HOME property. Your installation is complete. The default EAP_HOME path for the RPM installation is /opt/rh/eap8/root/usr/share/wildfly . Important When you install JBoss EAP by using RPM packages, you cannot configure multiple domain or host controllers on the same machine. Additional resources Setting up the EAP_HOME variable, in the JBoss EAP Installation Guide . Subscribing to a Minor JBoss EAP repository, in the JBoss EAP Installation Guide . For more information about changing the JAVA_HOME property, see the RPM Service Configuration Properties section of the Configuration Guide. 6.3. Configuring JBoss EAP RPM installation as a service on RHEL 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: Additional resources To start or stop an RPM installation of JBoss EAP on demand, see the RPM instructions in the JBoss EAP Configuration Guide. See the RPM service configuration files appendix in the JBoss EAP Configuration Guide for further details and options. 6.4. Changing the software subscription from one JBoss EAP repository to another You can change the software subscription from one JBoss EAP repository to another based on the following conditions: If you are changing to the 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. 6.5. Uninstalling JBoss EAP using the RPM installation method Note 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.

Commands:
subscription-manager repos --enable=jb-eap-EAP_MINOR_VERSION-for-rhel-RHEL_VERSION-ARCH-rpms
dnf groupinstall jboss-eap8
dnf groupinstall jboss-eap8-jdk11
alternatives --config java
systemctl enable EAP_SERVICE_NAME.service
subscription-manager repos --disable=EXISTING_REPOSITORY --enable=NEW_REPOSITORY