Quick start installation guide — ROCm installation (Linux) (original) (raw)

Contents

Quick start installation guide#

2026-06-05

15 min read time

Applies to Linux

Note

See Use ROCm on Radeon and Ryzen for instructions on installing ROCm on systems with AMD Radeon™ GPUs or Ryzen™ APUs for graphics workloads.

Before proceeding, ensure your kernel meets the ROCm system requirements. Then select your operating system and version, and run the provided commands to install the AMD GPU and ROCm.

For detailed guidance, see Installation via native package manager for AMD GPU installation and Detailed install for ROCm installation.

Installing#

Register repositories#

Ubuntu

24.04

wget https://repo.radeon.com/amdgpu-install/7.2.4/ubuntu/noble/amdgpu-install_7.2.4.70204-1_all.deb sudo apt install ./amdgpu-install_7.2.4.70204-1_all.deb sudo apt update

22.04

wget https://repo.radeon.com/amdgpu-install/7.2.4/ubuntu/jammy/amdgpu-install_7.2.4.70204-1_all.deb sudo apt install ./amdgpu-install_7.2.4.70204-1_all.deb sudo apt update

Debian

13

wget https://repo.radeon.com/amdgpu-install/7.2.4/ubuntu/noble/amdgpu-install_7.2.4.70204-1_all.deb sudo apt install ./amdgpu-install_7.2.4.70204-1_all.deb sudo apt update

12

wget https://repo.radeon.com/amdgpu-install/7.2.4/ubuntu/jammy/amdgpu-install_7.2.4.70204-1_all.deb sudo apt install ./amdgpu-install_7.2.4.70204-1_all.deb sudo apt update

Red Hat Enterprise Linux

10.1

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/10/amdgpu-install-7.2.4.70204-1.el10.noarch.rpm sudo dnf clean all

10.0

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/10/amdgpu-install-7.2.4.70204-1.el10.noarch.rpm sudo dnf clean all

9.7

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/9.7/amdgpu-install-7.2.4.70204-1.el9.noarch.rpm sudo dnf clean all

9.6

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/9.6/amdgpu-install-7.2.4.70204-1.el9.noarch.rpm sudo dnf clean all

9.4

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/9.4/amdgpu-install-7.2.4.70204-1.el9.noarch.rpm sudo dnf clean all

8.10

Before installing ROCm on RHEL, register and update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/rhel/8/amdgpu-install-7.2.4.70204-1.el8.noarch.rpm sudo dnf clean all

Oracle Linux

10.1

Before installing ROCm on OL, update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/el/10/amdgpu-install-7.2.4.70204-1.el10.noarch.rpm sudo dnf clean all

9.7

Before installing ROCm on OL, update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/el/9.7/amdgpu-install-7.2.4.70204-1.el9.noarch.rpm sudo dnf clean all

8.10

Before installing ROCm on OL, update your Enterprise Linux.

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/el/8/amdgpu-install-7.2.4.70204-1.el8.noarch.rpm sudo dnf clean all

SUSE Linux Enterprise Server

15.7

Before installing ROCm on SLES, register and update your Enterprise Linux.

sudo SUSEConnect -p sle-module-desktop-applications/15.7/x86_64 sudo SUSEConnect -p sle-module-development-tools/15.7/x86_64 sudo SUSEConnect -p PackageHub/15.7/x86_64 sudo zypper install zypper sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/7.2.4/sle/15.7/amdgpu-install-7.2.4.70204-1.noarch.rpm sudo zypper --gpg-auto-import-keys refresh

Rocky Linux

9.7

sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.4/el/9.7/amdgpu-install-7.2.4.70204-1.el9.noarch.rpm sudo dnf clean all

Install kernel driver#

Ubuntu

24.04

Caution

Remove any AMD GPU driver from a previous installation by following the uninstall steps in Uninstall kernel driver.

sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" sudo apt install amdgpu-dkms

22.04

Caution

Remove any AMD GPU driver from a previous installation by following the uninstall steps in Uninstall kernel driver.

sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" sudo apt install amdgpu-dkms

Debian

13

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo apt install "linux-headers-$(uname -r)" sudo apt install amdgpu-dkms

12

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo apt install "linux-headers-$(uname -r)" sudo apt install amdgpu-dkms

Red Hat Enterprise Linux

10.1

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" "kernel-devel-matched-$(uname -r)" sudo dnf install amdgpu-dkms

10.0

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" "kernel-devel-matched-$(uname -r)" sudo dnf install amdgpu-dkms

9.7

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" "kernel-devel-matched-$(uname -r)" sudo dnf install amdgpu-dkms

9.6

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" "kernel-devel-matched-$(uname -r)" sudo dnf install amdgpu-dkms

9.4

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" "kernel-devel-matched-$(uname -r)" sudo dnf install amdgpu-dkms

8.10

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers-$(uname -r)" "kernel-devel-$(uname -r)" sudo dnf install amdgpu-dkms

Oracle Linux

10.1

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-uek-devel-$(uname -r)" sudo dnf install amdgpu-dkms

9.7

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-uek-devel-$(uname -r)" sudo dnf install amdgpu-dkms

8.10

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-uek-devel-$(uname -r)" sudo dnf install amdgpu-dkms

SUSE Linux Enterprise Server

15.7

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo zypper install kernel-default-devel sudo zypper install amdgpu-dkms

Rocky Linux

9.7

Caution

Remove any AMD GPU driver from a previous installation by following uninstallation steps in Uninstall kernel driver.

sudo dnf install "kernel-headers" "kernel-devel" "kernel-devel-matched" sudo dnf install amdgpu-dkms

Important

To apply all settings, reboot your system.

Install ROCm#

Ubuntu

24.04

sudo apt install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo apt install rocm

22.04

sudo apt install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo apt install rocm

Debian

13

sudo apt install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo apt install rocm

12

sudo apt install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo apt install rocm

Red Hat Enterprise Linux

10.1

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm sudo rpm -ivh epel-release-latest-10.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-10-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

10.0

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm sudo rpm -ivh epel-release-latest-10.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-10-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

9.7

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo rpm -ivh epel-release-latest-9.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-9-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

9.6

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo rpm -ivh epel-release-latest-9.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-9-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

9.4

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo rpm -ivh epel-release-latest-9.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-9-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

8.10

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo rpm -ivh epel-release-latest-8.noarch.rpm sudo dnf config-manager --enable codeready-builder-for-rhel-8-x86_64-rpms sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

Oracle Linux

10.1

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm sudo rpm -ivh epel-release-latest-10.noarch.rpm sudo crb enable sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

9.7

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo rpm -ivh epel-release-latest-9.noarch.rpm sudo crb enable sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

8.10

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo rpm -ivh epel-release-latest-8.noarch.rpm sudo crb enable sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

SUSE Linux Enterprise Server

15.7

sudo zypper addrepo https://download.opensuse.org/repositories/science/SLE_15_SP5/science.repo sudo zypper install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo zypper install rocm

Rocky Linux

9.7

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo rpm -ivh epel-release-latest-9.noarch.rpm sudo dnf install dnf-plugin-config-manager sudo crb enable sudo dnf install python3-setuptools python3-wheel sudo usermod -a -G render,video $LOGNAME # Add the current user to the render and video groups sudo dnf install rocm

Important

To apply all settings, reboot your system.

After completing the installation, review the Post-installation instructions. If you have issues with your installation, see Troubleshooting.

Uninstalling#

Uninstall ROCm#

Ubuntu

24.04

sudo apt autoremove rocm sudo apt autoremove rocm-core

22.04

sudo apt autoremove rocm sudo apt autoremove rocm-core

Debian

13

sudo apt autoremove rocm sudo apt autoremove rocm-core

12

sudo apt autoremove rocm sudo apt autoremove rocm-core

Red Hat Enterprise Linux

10.1

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

10.0

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

9.7

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

9.6

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

9.4

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

8.10

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

Oracle Linux

10.1

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

9.7

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

8.10

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

SUSE Linux Enterprise Server

15.7

sudo zypper remove rocm sudo zypper remove rocm-core amdgpu-core

Rocky Linux

9.7

sudo dnf remove rocm sudo dnf remove rocm-core amdgpu-core

Uninstall kernel driver#

Ubuntu

24.04

sudo apt autoremove amdgpu-dkms

22.04

sudo apt autoremove amdgpu-dkms

Debian

13

sudo apt autoremove amdgpu-dkms

12

sudo apt autoremove amdgpu-dkms

Red Hat Enterprise Linux

10.1

sudo dnf remove amdgpu-dkms

10.0

sudo dnf remove amdgpu-dkms

9.7

sudo dnf remove amdgpu-dkms

9.6

sudo dnf remove amdgpu-dkms

9.4

sudo dnf remove amdgpu-dkms

8.10

sudo dnf remove amdgpu-dkms

Oracle Linux

10.1

sudo dnf remove amdgpu-dkms

9.7

sudo dnf remove amdgpu-dkms

8.10

sudo dnf remove amdgpu-dkms

SUSE Linux Enterprise Server

15.7

sudo zypper remove amdgpu-dkms amdgpu-dkms-firmware

Rocky Linux

9.7

sudo dnf remove amdgpu-dkms

Important

To apply all settings, reboot your system.

Remove repositories#

Ubuntu

24.04

sudo apt purge amdgpu-install sudo apt autoremove

Clear the cache and clean the system

sudo rm -rf /var/cache/apt/* sudo apt clean all sudo apt update

22.04

sudo apt purge amdgpu-install sudo apt autoremove

Clear the cache and clean the system

sudo rm -rf /var/cache/apt/* sudo apt clean all sudo apt update

Debian

13

sudo apt purge amdgpu-install sudo apt autoremove

Clear the cache and clean the system

sudo rm -rf /var/cache/apt/* sudo apt clean all sudo apt update

12

sudo apt purge amdgpu-install sudo apt autoremove

Clear the cache and clean the system

sudo rm -rf /var/cache/apt/* sudo apt clean all sudo apt update

Red Hat Enterprise Linux

10.1

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

10.0

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

9.7

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

9.6

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

9.4

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

8.10

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

Oracle Linux

10.1

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

9.7

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

8.10

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all

SUSE Linux Enterprise Server

15.7

sudo zypper remove amdgpu-install

Clear the cache and clean the system

sudo zypper clean --all sudo zypper refresh

Rocky Linux

9.7

sudo dnf remove amdgpu-install

Clear the cache and clean the system

sudo rm -rf /var/cache/dnf sudo dnf clean all