Azure Linux multi-version installation#
2025-08-22
3 min read time
Caution
Ensure that the Installation prerequisites are met before installing.
Registering ROCm repositories#
# Note: There is NO trailing .0 in the patch version for repositories
for ver in 7.0 6.4.3; do
sudo tee --append /etc/yum.repos.d/rocm.repo <<EOF
[rocm-$ver]
name=ROCm $ver repository
baseurl=https://repo.radeon.com/rocm/azurelinux3/$ver/main/
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
EOF
done
sudo tdnf clean all
Installing#
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.0.0 6.4.3; do
sudo tdnf 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 Post-installation instructions.
Tip
For a single-version installation of the latest ROCm version on AZL, follow the steps in Azure Linux native installation in the ROCm documentation.
Uninstalling#
Uninstall specific meta packages#
# Note: There IS a trailing .0 in the patch version for packages
for ver in 7.0.0 6.4.3; do
sudo tdnf remove rocm$ver
done
Uninstall ROCm packages#
# Note: There IS a trailing .0 in the patch version for packages
for ver in 7.0.0 6.4.3; do
sudo tdnf remove rocm-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/tdnf
sudo tdnf clean all
Important
To apply all settings, reboot your system.
Note
For information about the AMDGPU driver installation, see the Azure Linux native installation in the AMD Instinct Data Center GPU Documentation.