Skip to content

Commit

Permalink
Improve uninstall instructions for package manager/amdgpu-installer (…
Browse files Browse the repository at this point in the history
…new layout) (ROCm#405)

* improve uninstall instructions

* remove amdgpu-core for consistency between Debian and Ubuntu cmds

---------

Co-authored-by: Alex Xu <[email protected]>
  • Loading branch information
alexxu-amd and Alex Xu authored Jan 23, 2025
1 parent 012b141 commit 7582990
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ After uninstalling ROCm, remove the amdgpu-install package from system.
sudo apt purge amdgpu-install
sudo apt autoremove
Remove ROCm and AMDGPU repositories
=================================================

.. code-block:: bash
# Remove the repositories
sudo rm /etc/apt/sources.list.d/amdgpu.list
sudo rm /etc/apt/sources.list.d/rocm.list
# Clear cache and clean system
sudo rm -rf /var/cache/apt/*
sudo apt clean all
sudo apt update
# Reboot
sudo reboot
Additional options
=================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@ To uninstall all ROCm packages and the kernel-mode driver, use the following com
sudo amdgpu-install --uninstall --rocmrelease=all
Uninstalling amdgpu-install
=================================================

After uninstalling ROCm, remove the amdgpu-install package from system.

.. code-block:: bash
sudo dnf remove amdgpu-install
Remove ROCm and AMDGPU repositories
=================================================

.. code-block:: bash
# Remove the repositories
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/dnf
sudo dnf clean all
# Reboot
sudo reboot
Additional options
=================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Installation

.. include:: ../includes/amdgpu-installer-common.rst


.. _rhel-amdgpu-install-uninstall:

Uninstalling ROCm
Expand All @@ -66,6 +65,31 @@ To uninstall all ROCm packages and the kernel-mode driver, use the following com
sudo amdgpu-install --uninstall --rocmrelease=all
Uninstalling amdgpu-install
=================================================

After uninstalling ROCm, remove the amdgpu-install package from system.

.. code-block:: bash
sudo dnf remove amdgpu-install
Remove ROCm and AMDGPU repositories
=================================================

.. code-block:: bash
# Remove the repositories
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/dnf
sudo dnf clean all
# Reboot
sudo reboot
Additional options
=================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,31 @@ To uninstall all ROCm packages and the kernel-mode driver, use the following com
sudo amdgpu-install --uninstall --rocmrelease=all
Uninstalling amdgpu-install
=================================================

After uninstalling ROCm, remove the amdgpu-install package from system.

.. code-block:: bash
sudo zypper remove amdgpu-install
Remove ROCm and AMDGPU repositories
=================================================

.. code-block:: bash
# Remove the repository rpmsave files
sudo rm /etc/zypp/repos.d/rocm.repo*
sudo rm /etc/zypp/repos.d/amdgpu.repo*
# Clear cache and clean system
sudo zypper clean --all
sudo zypper refresh
# Reboot
sudo reboot
Additional options
=================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ After uninstalling ROCm, remove the amdgpu-install package from system.
sudo apt purge amdgpu-install
sudo apt autoremove
Remove ROCm and AMDGPU repositories
=================================================

.. code-block:: bash
# Remove the repositories
sudo rm /etc/apt/sources.list.d/amdgpu.list
sudo rm /etc/apt/sources.list.d/rocm.list
# Clear cache and clean system
sudo rm -rf /var/cache/apt/*
sudo apt clean all
sudo apt update
# Reboot
sudo reboot
Additional options
=================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,21 @@ Uninstall kernel-mode driver
.. code-block:: bash
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms amdgpu-core
Remove ROCm and AMDGPU repositories
---------------------------------------------------------------------------
.. code-block:: bash
# Remove the repositories.
sudo rm /etc/yum.repos.d/rocm.list
sudo rm /etc/yum.repos.d/amdgpu.list
# Clear the cache and clean the system.
sudo rm -rf /var/cache/yum
# Remove the repositories
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/dnf
sudo dnf clean all
# Restart the system.
# Restart the system
sudo reboot
Original file line number Diff line number Diff line change
Expand Up @@ -136,20 +136,20 @@ Uninstall kernel-mode driver
.. code-block:: bash
sudo dnf remove amdgpu-dkms
sudo dnf remove amdgpu-dkms amdgpu-core
Remove ROCm and AMDGPU repositories
---------------------------------------------------------------------------
.. code-block:: bash
# Remove the repositories.
sudo rm /etc/yum.repos.d/rocm.list
sudo rm /etc/yum.repos.d/amdgpu.list
# Clear the cache and clean the system.
sudo rm -rf /var/cache/yum
# Remove the repositories
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/dnf
sudo dnf clean all
# Restart the system.
# Restart the system
sudo reboot
Original file line number Diff line number Diff line change
Expand Up @@ -127,27 +127,21 @@ Uninstall kernel-mode driver
.. code-block:: bash
sudo zypper remove --clean-deps amdgpu-dkms
sudo zypper remove amdgpu-dkms amdgpu-core
Remove ROCm and AMDGPU repositories
---------------------------------------------------------------------------
.. code-block:: bash
:substitutions:
# Remove the repositories.
# sudo zypper removerepo <rocm*/amdgpu>
#
# The name of the repositories can be listed with:
sudo zypper repos
# Then remove the 'ROCm' and 'amdgpu' repositories.
# For example:
sudo zypper removerepo ROCm-|rocm_version|
sudo zypper removerepo amdgpu
# Clear the cache and clean the system.
# Remove the repositories
sudo zypper removerepo "ROCm-6.3.2"
sudo zypper removerepo "amdgpu"
# Clear cache and clean system
sudo zypper clean --all
# Restart the system.
sudo zypper refresh
# Reboot
sudo reboot
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Uninstall ROCm packages
.. code-block:: bash
:substitutions:
sudo apt autoremove rocm-core amdgpu-core
sudo apt autoremove rocm-core
# Or for version specific packages:
sudo apt autoremove rocm-core|rocm_version|
Expand Down

0 comments on commit 7582990

Please sign in to comment.