Dnf missing from docker 9-minimal

How am I supposed to install packages, or upgrade existing packages without dnf? Why is this removed from the minimal image?

$ docker pull rockylinux:9-minimal
$ docker run -d -i -t -- rockylinux:9-minimal
0e24225f1d7156a22dcceb81c2db6f9be00e7e5870faa60b1de30d5c9a0955de
$ docker exec -it 0e24225f1d /bin/bash

bash-5.1# dnf -y upgrade
bash: dnf: command not found

bash-5.1# yum
bash: yum: command not found

bash-5.1# cat /etc/redhat-release
Rocky Linux release 9.3 (Blue Onyx)

Seems I need to use something called microdnf

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.