# Upgrade (Linux) This section explains how to upgrade the existing kernel-mode driver and ROCm packages to the latest version. The assumption is that you already have a version of the kernel-mode driver and the ROCm software stack is installed on the system. ```{note} Package upgrade is applicable to single-version packages only. If the preference is to install an updated version of the ROCm stack along with the currently installed version, refer to the [](install) page. ``` You may use the following upgrade methods to upgrade ROCm: - Package manager method - Installer script method ## Package Manager Method To upgrade the system with the desired ROCm release using the package manager method, follow the steps below: 1. **Update the AMDGPU stack repository** – Ensure you have updated the AMDGPU repository. 2. **Upgrade the kernel-mode driver and reboot the system** – Ensure you have upgraded the kernel-mode driver and rebooted the system. 3. **Update the ROCm repository** – Ensure you have updated the ROCm repository with the desired ROCm release. 4. **Upgrade the ROCm meta-packages** – Upgrade the ROCm meta-packages. 5. **Verify the upgrade for the applicable distributions** – Verify if the upgrade is successful. To upgrade ROCm on different Linux distributions, refer to the sections below for specific commands. ::::::{tab-set} :::::{tab-item} Ubuntu :sync: ubuntu ::::{rubric} Update the AMDGPU Stack Repository :::: ::::{tab-set} :::{tab-item} Ubuntu 20.04 :sync: ubuntu-20.04 ```shell echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/5.4.3/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/amdgpu.list sudo apt update ``` ::: :::{tab-item} Ubuntu 22.04 :sync: ubuntu-22.04 ```shell echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/5.4.3/ubuntu jammy main' | sudo tee /etc/apt/sources.list.d/amdgpu.list sudo apt update ``` ::: :::: Upgrade the kernel mode driver and reboot the system using the following commands: ```shell sudo apt install amdgpu-dkms sudo reboot ``` ::::{rubric} Update the ROCm Stack Repository :::: ::::{tab-set} :::{tab-item} Ubuntu 20.04 :sync: ubuntu-20.04 ```shell echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/5.4.3 focal main" | sudo tee /etc/apt/sources.list.d/rocm.list echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600 sudo apt update ``` ::: :::{tab-item} Ubuntu 22.04 :sync: ubuntu-22.04 ```shell echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/5.4.3 jammy main" | sudo tee /etc/apt/sources.list.d/rocm.list echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600 sudo apt update ``` ::: :::: ::::{rubric} Upgrade the ROCm Meta-packages :::: Your packages can be upgraded now through their meta-packages, for example: ```shell sudo apt install –-only-upgrade rocm-hip-sdk ``` ::::: :::::{tab-item} Red Hat Enterprise Linux :sync: RHEL ::::{rubric} Update the AMDGPU Stack Repository :::: ::::{tab-set} :::{tab-item} RHEL 8.6 :sync: RHEL-8.6 ```shell sudo tee --append /etc/yum.repos.d/amdgpu.repo <