Oracle Linux native installation#
Caution
Ensure that the Installation prerequisites are met.
Note
The following installation steps also apply when upgrading from a previous ROCm version.
Register ROCm repositories#
sudo tee /etc/yum.repos.d/rocm.repo <<EOF
[rocm]
name=ROCm 7.1.1 repository
baseurl=https://repo.radeon.com/rocm/el10/7.1.1/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgraphics]
name=AMD Graphics 7.1.1 repository
baseurl=https://repo.radeon.com/graphics/7.1.1/el/10/main/x86_64/
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo dnf clean all
sudo tee /etc/yum.repos.d/rocm.repo <<EOF
[rocm]
name=ROCm 7.1.1 repository
baseurl=https://repo.radeon.com/rocm/el9/7.1.1/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgraphics]
name=AMD Graphics 7.1.1 repository
baseurl=https://repo.radeon.com/graphics/7.1.1/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
sudo tee /etc/yum.repos.d/rocm.repo <<EOF
[rocm]
name=ROCm 7.1.1 repository
baseurl=https://repo.radeon.com/rocm/el8/7.1.1/main
enabled=1
priority=50
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
[amdgraphics]
name=AMD Graphics 7.1.1 repository
baseurl=https://repo.radeon.com/graphics/7.1.1/el/8/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 Oracle Linux native installation in the AMD Instinct Data Center GPU Documentation.
For information about driver compatibility, see User and AMD GPU Driver (amdgpu) support matrix.
Install ROCm#
sudo dnf install rocm
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#
# 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.