Quick start installation guide#

2026-04-14

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#

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

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

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

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

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

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

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

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

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

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

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

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

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

Before installing ROCm on OL, update your Enterprise Linux.

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

Before installing ROCm on OL, update your Enterprise Linux.

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

Before installing ROCm on OL, update your Enterprise Linux.

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

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.1/sle/15.7/amdgpu-install-7.2.1.70201-1.noarch.rpm
sudo zypper --gpg-auto-import-keys refresh
sudo dnf install https://repo.radeon.com/amdgpu-install/7.2.1/el/9.7/amdgpu-install-7.2.1.70201-1.el9.noarch.rpm
sudo dnf clean all

Install kernel driver#

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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#

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.

Note

Quick Start enables GPU access for the current user only. To grant GPU access to all users, see Configuring permissions for GPU access.

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

Uninstalling#

Uninstall ROCm#

sudo apt autoremove rocm
sudo apt autoremove rocm-core
sudo apt autoremove rocm
sudo apt autoremove rocm-core
sudo apt autoremove rocm
sudo apt autoremove rocm-core
sudo apt autoremove rocm
sudo apt autoremove rocm-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
sudo zypper remove rocm
sudo zypper remove rocm-core amdgpu-core
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core

Uninstall kernel driver#

sudo apt autoremove amdgpu-dkms
sudo apt autoremove amdgpu-dkms
sudo apt autoremove amdgpu-dkms
sudo apt autoremove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms
sudo zypper remove amdgpu-dkms amdgpu-dkms-firmware
sudo dnf remove amdgpu-dkms

Important

To apply all settings, reboot your system.

Remove repositories#

 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
 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
 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
 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
 sudo dnf remove amdgpu-install

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

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

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

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

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

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

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

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

 # Clear the cache and clean the system
 sudo rm -rf /var/cache/dnf
 sudo dnf clean all
 sudo zypper remove amdgpu-install

 # Clear the cache and clean the system
 sudo zypper clean --all
 sudo zypper refresh
 sudo dnf remove amdgpu-install

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