Why the first command tells me that no package with that name is installed, while the second command would not allow me to proceed?
[raffaele@fedora ~]$ sudo dnf list --installed | grep cuda
[raffaele@fedora ~]$ sudo dnf remove *cuda*
Error:
Problem: The operation would result in removing the following protected packages: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)
Many dnf subcommands (including remove) take a <package-spec> parameter that selects a package for the operation. The argument is matched against package NEVRAs, provides and file provides. dnf remove *cuda* tries to remove libicu package because:
$ rpm -ql libicu | grep cuda
/usr/lib64/libicudata.so.69
/usr/lib64/libicudata.so.69.1
And the dependency chain results with trying to remove gnome-shell, hence the error message.
But why that libicu doesn’t show up in sudo dnf list --installed | grep cuda?
And how did you guess that that command would result in the removal of libicu?
Why also sudo dnf remove *nvidia* wants to remove kernel-core?
$ sudo dnf remove *nvidia*
Error:
Problem: The operation would result in removing the following protected packages: kernel-core
(try to add '--skip-broken' to skip uninstallable packages)
Because dnf list only lists package names, not their provides and file provides.
I don’t have gnome-shell installed. I tried to execute dnf remove *cuda* command and it wanted to remove libicu and many other packages which depend on libicu, but none of these packages were a protected package like gnome-shell so I could see the the packages which will be removed if I would proceed.
I’m not sure, but maybe the packages not use dnf from RPMFussion but from NVIDIA. Try with ls /bin | grep -i nvidia. If from the list result you find nvidia-uninstall then you should use that when want to uninstall nvidia driver (from tty console/non-graphical session).
Hera on my case with NVIDIA 340xx patched.
[rizal@fedora ~]$ sudo dnf remove *nvidia*
Error:
Problem: The operation would result in removing the following protected packages: kernel-core
(try to add '--skip-broken' to skip uninstallable packages)
[rizal@fedora nvidia-5.16.x]$ ls /bin | grep -i nvidia
nvidia-bug-report.sh
nvidia-cuda-mps-control
nvidia-cuda-mps-server
nvidia-debugdump
nvidia-installer
nvidia-modprobe
nvidia-persistenced
nvidia-settings
nvidia-smi
nvidia-uninstall
nvidia-xconfig
If you install the nvidia driver from rpmfusion you avoid those strange behaviors. None of the nvidia packages from rpmfusion are linked to any part of the kernel or gnome except the kernel-devel package which is not a protected package.
It says: " NVIDIA official repositories: These repositories contain versions of CUDA that are parallel installables along with another version."
To me that indicates that you can install different versions of CUDA in parallel but using the Nvidia drivers from RPM Fusion instead of the binary ones that Nvidia provide.