* Clean up the deployment related pages - Add an index page for the linux deployment submenu - Remove deployment options that are not yet completed (i.e. spack, from source installation) - remove the general deployment index page - various cleanups and clarifications in the rest of the pages * Move all deploy pages to deploy folder --------- Co-authored-by: Gergely Meszaros <gergely@streamhpc.com>
4.2 KiB
Uninstallation (Linux)
Uninstallation of ROCm entails removing ROCm packages, tools, and libraries from the system.
You can uninstall using the following methods:
- Package manager uninstallation
- Uninstallation using the uninstall script
Use the same uninstall method that you used to install ROCm. Mixing procedures
is untested and may result in inconsistent system state.
Package Manager Method
The package manager uninstallation offers a method for a clean uninstallation process for ROCm. This section describes how to uninstall the ROCm instance from various Linux distributions.
::::::{tab-set} :::::{tab-item} Ubuntu :sync: ubuntu
::::{rubric} Uninstalling Specific Meta-packages ::::
# Uninstall single-version ROCm packages
sudo apt autoremove <package-name>
# Uninstall multiversion ROCm packages
sudo apt autoremove <package-name with release version>
::::{rubric} Complete Uninstallation of ROCm Packages ::::
# Uninstall single-version ROCm packages
sudo apt autoremove rocm-core
# Uninstall multiversion ROCm packages
sudo apt autoremove rocm-core<release version>
::::{rubric} Uninstall Kernel-mode Driver ::::
sudo apt autoremove amdgpu-dkms
::::{rubric} Remove ROCm and AMDGPU Repositories ::::
-
Execute these commands:
sudo rm /etc/apt/sources.list.d/<rocm_repository-name>.list sudo rm /etc/apt/sources.list.d/<amdgpu_repository-name>.list -
Clear the cache and clean the system.
sudo rm -rf /var/cache/apt/* sudo apt-get clean all -
Restart the system.
sudo reboot
::::: :::::{tab-item} Red Hat Enterprise Linux :sync: RHEL
::::{rubric} Uninstalling Specific Meta-packages ::::
# Uninstall single-version ROCm packages
sudo yum remove <package-name>
# Uninstall multiversion ROCm packages
sudo yum remove <package-name with release version>
::::{rubric} Complete Uninstallation of ROCm Packages ::::
# Uninstall single-version ROCm packages
sudo yum remove rocm-core
# Uninstall multiversion ROCm packages
sudo yum remove rocm-core<release version>
::::{rubric} Uninstall Kernel-mode Driver ::::
sudo yum autoremove amdgpu-dkms
::::{rubric} Remove ROCm and AMDGPU Repositories ::::
-
Execute these commands:
sudo rm -rf /etc/yum.repos.d/<rocm_repository-name> # Remove only rocm repo sudo rm -rf /etc/yum.repos.d/<amdgpu_repository-name> # Remove only amdgpu repo -
Clear the cache and clean the system.
sudo rm -rf /var/cache/yum #Remove the cache sudo yum clean all -
Restart the system.
sudo reboot
::::: :::::{tab-item} SUSE Linux Enterprise Server 15 :sync: SLES15
::::{rubric} Uninstalling Specific Meta-packages ::::
# Uninstall all single-version ROCm packages
sudo zypper remove <package-name>
# Uninstall all multiversion ROCm packages
sudo zypper remove <package-name with release version>
::::{rubric} Complete Uninstallation of ROCm Packages ::::
# Uninstall all single-version ROCm packages
sudo zypper remove rocm-core
# Uninstall all multiversion ROCm packages
sudo zypper remove rocm-core<release version>
::::{rubric} Uninstall Kernel-mode Driver ::::
sudo zypper remove --clean-deps amdgpu-dkms
::::{rubric} Remove ROCm and AMDGPU Repositories ::::
-
Execute these commands:
sudo zypper removerepo <rocm_repository-name> sudo zypper removerepo <amdgpu_repository-name> -
Clear the cache and clean the system.
sudo zypper clean --all -
Restart the system.
sudo reboot
::::: ::::::
Installer Script Method
::::{rubric} Uninstalling Single-Version Install ::::
sudo amdgpu-install --uninstall
This command uninstalls all ROCm packages associated with the installed ROCm
release along with the kernel-mode driver.
::::{rubric} Uninstalling a Specific ROCm Release ::::
sudo amdgpu-install --uninstall --rocmrelease=<release-number>
::::{rubric} Uninstalling all ROCm Releases ::::
sudo amdgpu-install --uninstall --rocmrelease=all