Redirecting…#

2026-07-15

3 min read time

Applies to Linux

Important

This page has moved! Go to https://rocm.docs.amd.com/en/latest/install/rocm.html for the latest instructions on installing ROCm.

Rocky Linux multi-version installation#

Caution

Ensure that the Redirecting… are met.

Registering ROCm repositories#

# Note: There is NO trailing .0 in the patch version for repositories
for ver in 7.2.4 7.2; do
sudo tee --append /etc/yum.repos.d/rocm.repo <<EOF
[rocm-$ver]
name=ROCm $ver repository
baseurl=https://repo.radeon.com/rocm/el9/$ver/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
done
sudo dnf clean all

Installing#

Install kernel driver#

For information about the AMDGPU driver installation, see the Rocky Linux native installation in the AMD Instinct Data Center GPU Documentation.

For information about driver compatibility, see Redirecting….

Install ROCm#

Before proceeding with a multi-version ROCm installation, you must remove ROCm packages that were previously installed from a single-version installation to avoid conflicts.

# Note: There IS a trailing .0 in the patch version for packages
for ver in 7.2.4 7.2.0; do
      sudo dnf install rocm$ver
done

Note

For versions earlier than ROCm 6.0.0, use rocm-hip-sdk instead of rocm (for example, rocm-hip-sdk5.7.1).

Post-installation#

Complete the Redirecting….

Tip

For a single-version installation of the latest ROCm version on Rocky Linux, use the steps in Registering ROCm repositories and Installing.

Uninstalling#

Uninstall specific meta packages#

# Note: There IS a trailing .0 in the patch version for packages
for ver in 7.2.4 7.2.0; do
   sudo dnf remove rocm$ver
done

Uninstall ROCm packages#

# Note: There IS a trailing .0 in the patch version for packages
for ver in 7.2.4 7.2.0; do
   sudo dnf remove rocm-core$ver amdgpu-core$ver
done

Remove ROCm repositories#

# Remove ROCm repositories
sudo rm /etc/yum.repos.d/rocm.repo*

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

Important

To apply all settings, reboot your system.