# Upgrade ROCm with the package manager This section explains how to upgrade the existing AMDGPU driver and ROCm packages to the latest version using your OS's distributed package manager. ```{note} Package upgrade is applicable to single-version packages only. If the preference is to install an updated version of the ROCm along with the currently installed version, refer to the [](install) page. ``` ## Upgrade steps ### Update the AMDGPU repository Execute the commands below based on your distribution to point the `amdgpu` repository to the new release. ::::::{tab-set} :::::{tab-item} Ubuntu :sync: ubuntu ::::{tab-set} :::{tab-item} Ubuntu 22.04 :sync: ubuntu-22.04 ```shell # version version=5.7 # amdgpu repository for jammy echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/$version/ubuntu jammy main" \ | sudo tee /etc/apt/sources.list.d/amdgpu.list sudo apt update ``` ::: :::{tab-item} Ubuntu 20.04 :sync: ubuntu-20.04 ```shell # version version=5.7 # amdgpu repository for focal echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/$version/ubuntu focal main" \ | sudo tee /etc/apt/sources.list.d/amdgpu.list sudo apt update ``` ::: :::: ::::: :::::{tab-item} Red Hat Enterprise Linux :sync: RHEL ::::{tab-set} :::{tab-item} RHEL 9.2 :sync: RHEL-9.2 :sync: RHEL-9 ```shell # version version=5.7 sudo tee /etc/yum.repos.d/amdgpu.repo <