How to blacklist radeon module? [duplicate]

In this answer https://askubuntu.com/a/928889/632192 , step 3:

Ensure that the radeon module is blacklisted prior to installing the package from AMD.

How can I do that?

Kernel version (output of uname -r to be exact): 4.10.0-26-generic

Ubuntu 17.04


I found an easy way:

  1. Open /etc/modprobe.d/blacklist.conf as super user, or create it if it is not there.
  2. Add the following line: blacklist radeon.
  3. Run sudo update-initramfs -u then reboot.

To confirm that the module has been disabled, after rebooting run lsmod, and if radeon is not listed in the output then it has been blacklisted.