I just ran dnf autoremove to see if there are unneeded dependencies on my system which could be removed. This is the output:
$ sudo dnf autoremove
Package Arch Version Repository Size
amd-ucode-firmware noarch 20231111-1.fc39 updates 236.2 KiB
dbus-glib x86_64 0.112-6.fc39 fedora 370.4 KiB
Removing: 2 packages
After this operation 607 KiB will be freed (install 0 B, remove 607 KiB).
Is this ok [Y/n]: n
Operation aborted by the user.
I am not sure if I should be removing these.
I am on Fedora 39 (upfraded from 38) and the machine has a AMD processor.
I also have the same problem about the amd-ucode-firmware. I probably dnf autoremove’d it in the past. What’s the correct thing to do? Why does dnf want to autoremove it?
Currently, I see amd-ucode-firmware is a mandatory package of Fedora Workstation product core(@workstation-product), which is a mandatory group of Fedora Workstation. In theory it shouldn’t be autoremoved?
$ sudo dnf group list --installed
Installed Environment Groups:
$ dnf group info "Fedora Workstation"
Environment Group: Fedora Workstation
Description: Fedora Workstation is a user friendly desktop system for laptops and PCs.
Common NetworkManager Submodules
Fedora Workstation product core
Firefox Web Browser
Guest Desktop Agents
$ dnf group info "Fedora Workstation product core"
Group: Fedora Workstation product core
Description: Packages mandatory for the workstation product.
$ dnf repoquery --groupmember amd-ucode-firmware
Anyway, is there a way to restore just this one package?
I have removed some GUI packages from the product core, if I dnf group install "Fedora Workstation product core" they (and the giant list of dependencies) all want to come back.
Is manually installing and changing mark the right way to do this? I still don’t quite understand how dnf can change package to group mark without knowing which group it belongs to.
sudo dnf install amd-ucode-firmware
sudo dnf mark group amd-ucode-firmware