Red Hat Enterprise Linux AMDGPU installer installation#

amdgpu-install is a tool that helps you install and update AMDGPU, ROCm, and ROCm components.

Installation#

Caution

Ensure that the Installation prerequisites are met before installing.

sudo dnf install https://repo.radeon.com/amdgpu-install/6.4/rhel/9.5/amdgpu-install-6.4.60400-1.el9.noarch.rpm
sudo dnf install https://repo.radeon.com/amdgpu-install/6.4/rhel/9.4/amdgpu-install-6.4.60400-1.el9.noarch.rpm
sudo dnf install https://repo.radeon.com/amdgpu-install/6.4/rhel/8.10/amdgpu-install-6.4.60400-1.el8.noarch.rpm

Install amdgpu-dkms#

In order to install only the DKMS, which is a minimal requirement for launching containers with GPU access, use the dkms use case:

sudo amdgpu-install --usecase=dkms

To verify the kernel installation, use this command:

sudo dkms status

If the installation of the kernel module was successful, the command displays the output in the following format:

amdgpu, 4.3-52.el7, 3.10.0-1160.11.1.el7.x86_64, x86_64: installed (original_module exists)

Uninstalling kernel mode driver#

sudo dnf remove amdgpu-dkms

Uninstalling amdgpu-install#

After uninstalling the driver, remove the amdgpu-install package from system.

sudo dnf remove amdgpu-install

Remove AMDGPU repositories#

# Clear the cache and clean the system
sudo rm -rf /var/cache/dnf
sudo dnf clean all

# Restart the system
sudo reboot

Additional options#

  • Unattended installation.

    Adding -y as a parameter to amdgpu-install skips user prompts (for automation). For example:

    amdgpu-install -y --usecase=dkms