Skip to content
RIPE NCC member · Local Internet RegistryCall us on 020 3318 3449sales@hosting-telecom.uk

AlmaLinux 9 and 10 on a cloud server

An AlmaLinux cheat sheet: dnf, automatic updates, EPEL, firewalld, SELinux, networking and support dates.

Contents

AlmaLinux is a free operating system that is compatible with Red Hat Enterprise Linux. Our images include versions 9 and 10. Security updates for AlmaLinux 9 are released until May 2032, and for AlmaLinux 10 until May 2035. Log in as the almalinux user and run administrator commands with sudo.

Updating

sudo dnf upgrade

To see what will be updated, run dnf check-update. To see what was installed earlier, run dnf history. After a kernel update you need to reboot. Before a major update, take a server snapshot.

Updates are not installed automatically. To turn this on:

sudo dnf install dnf-automatic
sudo systemctl enable --now dnf-automatic-install.timer

Software and EPEL

sudo dnf install nginxinstall
sudo dnf remove nginxremove
dnf search keyword, dnf info nginxfind a package and view its description

Many popular programs are in the additional EPEL repository:

sudo dnf install epel-release
sudo dnf config-manager --set-enabled crb

For services and logs, use systemctl status nginx and journalctl -u nginx. Other common commands are in the article Basic Linux commands.

The firewalld firewall

The image does not include a firewall. Install firewalld as follows — SSH is allowed in it from the start:

sudo dnf install firewalld
sudo systemctl enable --now firewalld
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --list-all

To open other ports, or to allow only your own address to reach a port, see How to open a port on your server.

SELinux

SELinux is enabled in enforcing mode. To check, run sestatus. It most often gets in the way in two cases:

  • The website returns “403 Forbidden” even though the file permissions are correct — files that have been moved have the wrong labels. To fix this, run sudo restorecon -Rv /var/www.
  • nginx cannot connect to an application or database — allow the web server to make network connections: sudo setsebool -P httpd_can_network_connect 1.

It is best not to turn SELinux off altogether — correct the labels or the relevant boolean instead.

Networking

Networking is managed by NetworkManager, and the interface is called eth0. To view it, run nmcli con show, ip -4 addr or ip route. Connection settings are in the /etc/NetworkManager/system-connections/ folder; the system does not read the old ifcfg-* files.

How AlmaLinux 10 differs

  • The repositories include Valkey, which is compatible with Redis, in place of Redis.
  • There are no longer any 32-bit packages.

To check the system version, run cat /etc/almalinux-release.

Didn’t find the answer? Ask our support team — we’ll help.

Choose which cookies we may use. You can change your mind at any time with the “Cookie settings” link at the bottom of every page.

Necessary

Always active

They keep the site secure and remember your cookie choice. They don’t identify you.

Google Analytics counts visits and shows which pages people find useful, so we can improve the site. Which cookies