Remove the explicit dnf mark on "Container Management"

$ dnf group list --installed
Installed Environment Groups:
   Fedora Workstation
Installed Groups:
   Container Management

However, Container Management is included in Fedora Workstation. How to remove the explicit mark on the Container Management?

dnf group remove will actually remove the packages in the group, so that’s not right… (Not obvious in this group as many packages are dependencies for other packages in other groups.)

dnf group mark remove seems right but I’m not sure. It marks the group as removed (there is “removed” mark?) but it should be installed under the environment group. And I’m not sure if the packages in the group become orphaned[1] or still belong to the group.

Why is “Container Management” explicitly marked in the Workstation image in the first place?

p.s. I tried searching for dnf documentations on the group and mark concept but couldn’t find a detailed explanation.


  1. ↩︎

Yeah as you saw, it’s not that simple. I did a test on a Live USB:

  • mark remove makes dnf think it’s really uninstalled, and user can no longer group remove.
  • It doesn’t change the packages’ marks.
  • Thus the packages are orphaned (have fake group mark, no group manages them).
$ dnf repoquery --installed --qf='%{name} (%{reason})' podman buildah flatpak flatpak-builder skopeo toolbox
flatpak (dependency)    # for gnome-software
podman (group)          # only has one group
toolbox (group)         # also in @workstation-product

$ sudo dnf group mark remove container-management
# The repoquery result is still the same.

$ sudo dnf group remove container-management
# Cannot remove, says not installed.
# Thus podman has incorrect mark and is not managed by any group.