Update Apache on RHEL and Ubuntu
RHEL
RHEL 8, 9, and 10 ship httpd via Application Streams. Supported versions are listed in the Red Hat Application Streams life cycle.
Check for updates:
sudo dnf check-update httpdIf a newer version is listed, apply it:
sudo dnf update httpdConfirm the installed version:
httpd -vUbuntu
Refresh the index, then upgrade apache2:
sudo apt update
sudo apt upgrade apache2Confirm the installed version:
apache2 -vOptional: list available httpd streams
On RHEL, list every stream dnf knows about:
sudo dnf module list httpd