Azure Linux native installation#
2025-01-23
3 min read time
Applies to Linux
Caution
Ensure that the Installation prerequisites are met before installing.
Registering ROCm repositories#
sudo tee --append /etc/yum.repos.d/rocm.repo <<EOF
[ROCm-6.3.2]
name=ROCm6.3.2
baseurl=https://repo.radeon.com/rocm/azurelinux3/6.3.2/main/
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
sudo tdnf clean all
Installing#
Install kernel driver#
sudo tdnf install azurelinux-repos-amd
sudo tdnf repolist --refresh
sudo tdnf install amdgpu
sudo modprobe amdgpu
Install ROCm packages#
sudo tdnf install rocm
Complete the Post-installation instructions.
Upgrading#
To upgrade an existing ROCm installation to a newer version, follow the steps in Registering ROCm repositories and Installing.
Note
Upgrading the kernel driver may also upgrade the GPU firmware, which requires a system reboot to take effect.
Uninstalling#
Uninstall specific meta packages#
sudo tdnf remove rocm
Uninstall ROCm packages#
sudo tdnf remove rocm-core
Uninstall kernel-mode driver#
sudo tdnf remove amdgpu amdgpu-firmware kernel-drivers-gpu
Remove ROCm and AMDGPU repositories#
# Remove the repositories
sudo tdnf remove azurelinux-repos-amd
sudo rm /etc/yum.repos.d/rocm.repo*
sudo rm /etc/yum.repos.d/amdgpu.repo*
# Clear the cache and clean the system
sudo rm -rf /var/cache/tdnf
sudo tdnf clean all
# Restart the system
sudo reboot