Redirecting…#

2026-07-15

4 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 native installation#

Caution

Ensure that the Redirecting… are met.

Note

The following installation steps also apply when upgrading from a previous ROCm version.

Registering ROCm repositories#

sudo tee /etc/yum.repos.d/rocm.repo <<EOF
[rocm]
name=ROCm 7.2.4 repository
baseurl=https://repo.radeon.com/rocm/el9/7.2.4/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key

[amdgraphics]
name=AMD Graphics 7.2.4 repository
baseurl=https://repo.radeon.com/graphics/7.2.4/el/9.7/main/x86_64/
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
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#

sudo dnf install rocm

ROCm installation can be tailored to your requirements using one more combinations of ROCm meta packages:

ROCm runtime packages#

Meta package

Description

Legacy use case [1]

rocm

All ROCm core packages, tools, and libraries.

rocm

rocm-hip-libraries

HIP libraries optimized for the AMD platform.

Legacy use case does not exist.

rocm-hip-runtime

Run HIP applications written for the AMD platform.

hip

rocm-language-runtime

ROCm runtime environment for running applications on the AMD platform.

lrt

rocm-ml-libraries

Key machine learning libraries. Includes MIOpen.

mllib

rocm-opencl-runtime

Run OpenCL-based applications on the AMD platform.

opencl

Other package

amdgpu-lib

For users of graphics applications which require the open source Mesa 3D graphics and multimedia libraries. This package is primarily used for Radeon GPUs.

graphics

ROCm developer packages#

Meta package

Description

Legacy use case [1]

rocm-developer-tools

Debug and profile HIP applications.

rocmdevtools

rocm-hip-runtime-dev/rocm-hip-runtime-devel [2]

Develop applications on HIP or port from CUDA.

Legacy use case does not exist.

rocm-hip-sdk [3]

Develop or port HIP applications and libraries for the AMD platform.

hiplibsdk

rocm-ml-sdk

Develop and run machine learning applications for AMD.

mlsdk

rocm-opencl-sdk

Develop OpenCL-based applications for the AMD platform.

openclsdk

rocm-openmp-sdk

Develop OpenMP-based applications for the AMD software.

openmpsdk

Footnotes

Post-installation#

Complete the Redirecting….

Uninstalling#

Uninstall ROCm meta packages#

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

Remove ROCm repositories#

# Remove the 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.