📋 Cheatsheets 📄 PDF Docs

Install Latest Foreman on AlmaLinux 9

This guide walks you through installing the latest stable Foreman version on AlmaLinux 9.

1. Update System

sudo dnf update -y
sudo dnf install -y epel-release

2. Set Hostname

sudo hostnamectl set-hostname foreman.example.com
hostnamectl

3. Add Required Repositories


# Puppet 8 repo
sudo dnf install -y https://yum.puppet.com/puppet8-release-el-9.noarch.rpm

# Foreman latest stable repo
sudo dnf install -y https://yum.theforeman.org/releases/latest/el9/x86_64/foreman-release.rpm

4. Install Foreman Installer

sudo dnf install -y foreman-installer

5. Run Foreman Installer

sudo foreman-installer

6. Open Firewall Ports

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

7. Access Foreman Web Interface

https://foreman.example.com

8. Optional Plugins


sudo dnf install -y tfm-rubygem-foreman_remote_execution
sudo foreman-installer --enable-foreman-plugin-remote-execution

9. Update Foreman

sudo dnf update -y
sudo foreman-installer