AlmaLinux 9 self-check: 9 tasks that prove it
How to use it
Section titled “How to use it”Take one AlmaLinux 9 VM (snapshot first) and work through nine tasks grouped into three scenarios. Every task has verification commands: if all pass, you can handle this class of problem; if one fails, follow the link back to its page.
The checklist only covers hands-on pages published on this site. It does not come from any official exam bank and does not represent AlmaLinux or Red Hat certification content.
Scenario one: packages and sources (four tasks)
Section titled “Scenario one: packages and sources (four tasks)”1.1 Roll back a mistaken install
Section titled “1.1 Roll back a mistaken install”sudo dnf -y install treeID=$(dnf history list | awk 'NR==3{print $1}')sudo dnf -y history undo "$ID"rpm -q tree # expected: package tree is not installed1.2 Install from one chosen source
Section titled “1.2 Install from one chosen source”sudo dnf --disablerepo="*" --enablerepo=multi install -y treerpm -q tree# add includepkgs=tree to multi.repo, dnf clean all, then:dnf --disablerepo="*" --enablerepo=multi list available | grep -c wget # 0See: Package source audit
1.3 Enable CRB for one build
Section titled “1.3 Enable CRB for one build”sudo dnf install -y glibc-static # expected to failsudo dnf install -y --enablerepo=crb glibc-staticrpm -q glibc-staticdnf repolist --enabled | grep -c crb # expected 0See: Third-party repos
1.4 Install a package with no internet
Section titled “1.4 Install a package with no internet”# connected hostsudo dnf -y install createrepo_csudo dnf -y install --downloadonly --destdir=/srv/off treesudo createrepo_c /srv/off# isolated host (repo points at file:///srv/off)sudo dnf -y --disablerepo="*" --enablerepo=local-offline install treerpm -q treeScenario two: networking and ports (two tasks)
Section titled “Scenario two: networking and ports (two tasks)”2.1 Open exactly one port
Section titled “2.1 Open exactly one port”sudo firewall-cmd --permanent --zone=public --add-port=8443/tcpsudo firewall-cmd --reloadfirewall-cmd --zone=public --list-ports # should include 8443/tcpsudo systemctl restart firewalldfirewall-cmd --zone=public --list-ports # still there after restart2.2 Pre-generate a static IP offline
Section titled “2.2 Pre-generate a static IP offline”nmcli --offline connection add type ethernet ifname enp1s0 con-name app01-static \ ipv4.method manual ipv4.addresses 10.0.0.10/24 ipv4.gateway 10.0.0.1 ipv4.dns 10.0.0.2 \ | sudo tee /etc/NetworkManager/system-connections/app01-static.nmconnectionsudo chmod 600 /etc/NetworkManager/system-connections/app01-static.nmconnectionsudo nmcli connection reload && sudo nmcli connection up app01-staticip -4 addr show enp1s0; ip route show default; cat /etc/resolv.confSee: nmcli static IP
Scenario three: system and storage (three tasks)
Section titled “Scenario three: system and storage (three tasks)”3.1 The seven post-install checks
Section titled “3.1 The seven post-install checks”dnf repolist --enabled # baseos/appstream/extrastimedatectl status | grep "Time zone"hostname -fgetenforce # Enforcingfirewall-cmd --zone=public --list-servicesneeds-restarting -r; echo $? # 0rpm -q firewalld chrony3.2 Rotate an application log
Section titled “3.2 Rotate an application log”sudo mkdir -p /var/log/lab && sudo sh -c 'head -c 200000 /dev/urandom > /var/log/lab/a.log'sudo tee /etc/logrotate.d/lab >/dev/null <<'EOF'/var/log/lab/*.log { daily rotate 3 compress copytruncate }EOFsudo logrotate -f /etc/logrotate.d/labls /var/log/lab/ # a.log (0 bytes) + a.log.1.gz3.3 Add four gigabytes of swap
Section titled “3.3 Add four gigabytes of swap”sudo fallocate -l 4G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfileswapon --show # expected: a /swapfile entrySee: swap sizing
Scoring
Section titled “Scoring”| Passed | Meaning |
|---|---|
| 9/9 | You can handle packages, networking and system/storage independently |
| 7–8 | Revisit the failed pages’ verification commands instead of retyping them |
| < 7 | Redo the tasks by scenario and write your own verification commands first |
Next steps
Section titled “Next steps”- Start here: 7 checks after install
- Hardening: Hardening
- Containers and virtualisation: Containers and images