Quick-start install guide#

Applies to Linux

2024-03-25

8 min read time

For a quick summary on installing ROCm on Linux, follow the steps listed on this page. If you want more in-depth installation instructions, refer to ROCm installation options.

To start, choose your preferred install method and operating system:

Native package manager#

Ubuntu#

sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
wget https://repo.radeon.com/amdgpu-install/6.0/ubuntu/jammy/amdgpu-install_6.0.60000-1_all.deb
sudo apt install ./amdgpu-install_6.0.60000-1_all.deb
sudo apt update
sudo apt install amdgpu-dkms
sudo apt install rocm-hip-libraries
echo Please reboot system for all settings to take effect.
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
wget https://repo.radeon.com/amdgpu-install/6.0/ubuntu/focal/amdgpu-install_6.0.60000-1_all.deb
sudo apt install ./amdgpu-install_6.0.60000-1_all.deb
sudo apt update
sudo apt install amdgpu-dkms
sudo apt install rocm-hip-libraries
echo Please reboot system for all settings to take effect.

Red Hat Enterprise Linux#

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 yum install kernel-headers kernel-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/9.3/amdgpu-install-6.0.60000-1.el9.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm-hip-libraries
echo Please reboot system for all settings to take effect.
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 yum install kernel-headers kernel-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/9.2/amdgpu-install-6.0.60000-1.el9.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm-hip-libraries
echo Please reboot system for all settings to take effect.
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 yum install kernel-headers kernel-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/8.9/amdgpu-install-6.0.60000-1.el8.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm-hip-libraries
echo Please reboot system for all settings to take effect.
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 yum install kernel-headers kernel-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/8.8/amdgpu-install-6.0.60000-1.el8.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm-hip-libraries
echo Please reboot system for all settings to take effect.

SUSE Linux Enterprise Server#

# As of Mar 25 2024, installing Perl module for SLES 15.5 since the module was removed for SLES 15.4
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/SLE_15_SP5/devel:languages:perl.repo
sudo zypper install kernel-default-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.0/sle/15.5/amdgpu-install-6.0.60000-1.noarch.rpm
sudo zypper refresh
sudo zypper install amdgpu-dkms
sudo zypper install rocm-hip-libraries
echo Please reboot system for all settings to take effect.
# As of Mar 25 2024, installing Perl module for SLES 15.5 since the module was removed for SLES 15.4
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/SLE_15_SP5/devel:languages:perl.repo
sudo zypper install kernel-default-devel
# See prerequisites. Adding current user to Video and Render groups
sudo usermod -a -G render,video $LOGNAME
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.0/sle/15.4/amdgpu-install-6.0.60000-1.noarch.rpm
sudo zypper refresh
sudo zypper install amdgpu-dkms
sudo zypper install rocm-hip-libraries
echo Please reboot system for all settings to take effect.

AMDGPU installer#

Ubuntu#

sudo apt update
wget https://repo.radeon.com/amdgpu-install/6.0/ubuntu/jammy/amdgpu-install_6.0.60000-1_all.deb
sudo apt install ./amdgpu-install_6.0.60000-1_all.deb
sudo amdgpu-install --usecase=graphics,rocm
sudo apt update
wget https://repo.radeon.com/amdgpu-install/6.0/ubuntu/focal/amdgpu-install_6.0.60000-1_all.deb
sudo apt install ./amdgpu-install_6.0.60000-1_all.deb
sudo amdgpu-install --usecase=graphics,rocm

Red Hat Enterprise Linux#

sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/9.3/amdgpu-install-6.0.60000-1.el9.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/9.2/amdgpu-install-6.0.60000-1.el9.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/8.9/amdgpu-install-6.0.60000-1.el8.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
sudo yum install https://repo.radeon.com/amdgpu-install/6.0/rhel/8.8/amdgpu-install-6.0.60000-1.el8.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm

SUSE Linux Enterprise Server#

sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.0/sle/15.5/amdgpu-install-6.0.60000-1.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.0/sle/15.4/amdgpu-install-6.0.60000-1.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm