Rocky Linux native installation#
2025-08-22
4 min read time
Caution
Ensure that the Installation prerequisites are met before installing.
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.0 repository
baseurl=https://repo.radeon.com/rocm/el9/7.0/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgraphics]
name=AMD Graphics 7.0 repository
baseurl=https://repo.radeon.com/graphics/7.0/el/9.6/main/x86_64/
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo dnf clean all
Installing#
sudo dnf install rocm
ROCm installation can be tailored to your requirements using one more combinations of ROCm meta packages:
To use pre-built ROCm libraries and tools, include ROCm runtime packages in the installation step.
To develop and build individual ROCm libraries and tools, include ROCm developer packages in the installation step.
ROCm runtime packages#
Meta package |
Description |
Legacy use case [1] |
---|---|---|
|
All ROCm core packages, tools, and libraries. |
|
|
HIP libraries optimized for the AMD platform. |
Legacy use case does not exist. |
|
Run HIP applications written for the AMD platform. |
|
|
ROCm runtime environment for running applications on the AMD platform. |
|
|
Key machine learning libraries. Includes MIOpen. |
|
|
Run OpenCL-based applications on the AMD platform. |
|
Other packages |
||
|
For users of graphics applications which require the open source Mesa 3D graphics and multimedia libraries. This package is primarily used for Radeon GPUs. |
|
|
For users of ROCm in a Windows Subsystem for Linux (WSL) context. This package is only supported for Ubuntu. |
|
ROCm developer packages#
Meta package |
Description |
Legacy use case [1] |
---|---|---|
|
Debug and profile HIP applications. |
|
|
Develop applications on HIP or port from CUDA. |
Legacy use case does not exist. |
|
Develop or port HIP applications and libraries for the AMD platform. |
|
|
Develop and run machine learning applications for AMD. |
|
|
Develop OpenCL-based applications for the AMD platform. |
|
|
Develop OpenMP-based applications for the AMD software. |
|
Footnotes
Post-installation#
Complete the Post-installation instructions.
Uninstalling#
Uninstall ROCm meta packages#
sudo dnf remove rocm
sudo dnf remove rocm-core amdgpu-core
Remove ROCm repositories#
# 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.
Note
For information about the AMDGPU driver installation, see the Rocky Linux native installation in the AMD Instinct Data Center GPU Documentation.