For Rocky / Alma / RHEL 9
This is how to do a minimal installation of Enterprise Linux 9. We are using Rocky Linux, but the instructions should also work for Alma Linux 9 and RHEL 9
After installation login and become root and execute the following commands
systemctl mask systemd-hostnamed dnf update # replace dnf with microdnf, a more lightweight and faster implementation of dnf dnf install microdnf ln -sf /usr/bin/microdnf /usr/bin/dnf dnf upgrade # remove unnecessary packages dnf remove firewalld dnf remove audit dnf-3 remove NetworkManager* dnf install dhcp-client echo "dhclient eth0" >> /etc/rc.d/rc.local #replace eth0 with your network interface chmod +x /etc/rc.d/rc.local
Then reboot. Congratulation, you have now the smallest EL 9 system possible.