AlmaLinux9 - radiasoft/devops GitHub Wiki

This is like the CentOS7 wiki but for AlmaLinux9

dnf update

Before you run dnf update, you should probably stop services, e.g.

systemtl stop jupyterhub

Then run and reboot:

dnf update -y
rsc
reboot

You'll need to reconnect to the idrac_console.

After reboot, remove the old kernel:

dnf remove $(rpm -qa | grep ^kernel-5 | grep -v $(uname -r))

Kickstart

Edit /etc/dhcpd/dhcpd.conf on the dhcpd server and restart:

# Add next-server and filename lines (search in file). Make sure to add correct filename for bios vs uefi boot
systemctl restart dhcpd

On target machine select "PXE" under power settings for next boot and then reboot.

Post installation

On host, dnf update and change root password:

passwd
dnf update -y

On rsconf server:

bash run.sh host init <host>

This command will output some text that is copied to a shell on the freshly installed machine. The output looks something like:

install -m 600 /dev/stdin /root/.netrc <<'EOF'
machine <snip>
EOF
curl <snip>

This will run rsconf on the machine and ask you to reboot (to turn off ipv6). Then you will need to return the same curl command to finish the installation.

After reboot on host:

# might do nothing
dnf remove $(rpm -qa | grep ^kernel-5 | grep -v $(uname -r))
curl https://<rsconf_server> | install_server=https://<rsconf_server> bash
exit
ssh <host>
cat /dev/null > ~/.bash_history
exit
⚠️ **GitHub.com Fallback** ⚠️