Last active
June 7, 2026 23:58
-
-
Save thesabbir/1a70e51b64acfd405280b7f0107dde51 to your computer and use it in GitHub Desktop.
Remove nvidia from fedora system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Remove nvidia from fedora system | |
| set -euo pipefail | |
| echo ">> Removing all NVIDIA packages..." | |
| sudo dnf remove -y "*nvidia*" | |
| echo ">> Removing leftover nouveau-blacklist kernel args..." | |
| sudo grubby --update-kernel=ALL \ | |
| --remove-args="rd.driver.blacklist=nouveau,nova_core modprobe.blacklist=nouveau,nova_core | |
| nvidia-drm.modeset=1" | |
| echo ">> Rebuilding initramfs for all kernels..." | |
| sudo dracut --force --regenerate-all | |
| echo ">> Done. Reboot to come up cleanly on amdgpu:" | |
| echo " sudo systemctl reboot" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment