Install Latest Foreman on Ubuntu 26.04 LTS
This guide walks you through installing the latest stable Foreman version on Ubuntu 26.04 LTS Server.
1. Update System
sudo apt update && sudo apt upgrade -y
2. Set Hostname
sudo hostnamectl set-hostname foreman.example.com
hostnamectl
3. Add Required Repositories
# Add Puppet 8 repository
wget https://apt.puppet.com/puppet8-release-focal.deb
sudo dpkg -i puppet8-release-focal.deb
sudo apt update
# Add Foreman repository
wget https://deb.theforeman.org/releases/latest/ubuntu/foreman-release-latest.deb
sudo dpkg -i foreman-release-latest.deb
sudo apt update
4. Install Foreman Installer
sudo apt install -y foreman-installer
5. Run Foreman Installer
sudo foreman-installer
6. Open Firewall Ports
sudo ufw allow http
sudo ufw allow https
sudo ufw reload
7. Access Foreman Web Interface
https://foreman.example.com
8. Optional Plugins
sudo apt install -y tfm-rubygem-foreman_remote_execution
sudo foreman-installer --enable-foreman-plugin-remote-execution
9. Update Foreman
sudo apt update && sudo apt upgrade -y
sudo foreman-installer