1. add the firewalld rules:
firewall-cmd --add-service=cockpit firewall-cmd --add-service=cockpit --permanent
2. install the package
dnf install cockpit cockpit-storaged cockpit-selinux cockpit-kdump cockpit-networkmanager cockpit-packagekit cockpit-podman cockpit-sosreport cockpit-pcp cockpit-doc
3. start and enable the service
systemctl start cockpit.socket systemctl enable cockpit.socket