Skip to content

Commit

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

* Update NPM install for parity with amdgpu-install (#373)

* Update post-install instruction versioning (#386)

* Fix wget command and quotations ROCm runfile docs (#387)

* Change Runfile Installer run command to avoid persmission issue (#388)

* Update docs to add bash keyword when running the .run file. (#391)

* improve uninstall instructions

* fix typo

* remove space

* add reboot for RHEL

* improve consistency

---------

Co-authored-by: harkgill-amd <[email protected]>
Co-authored-by: Jeffrey Novotny <[email protected]>
Co-authored-by: pbhandar-amd <[email protected]>
Co-authored-by: Alex Xu <[email protected]>
(cherry picked from commit c068cdf)
  • Loading branch information
alexxu-amd authored and Alex Xu committed Jan 23, 2025
1 parent ea9aa5b commit 686039a
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 23 deletions.
77 changes: 77 additions & 0 deletions docs/install/amdgpu-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,83 @@ 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.

.. tab-set::

.. tab-item:: Ubuntu

.. code-block:: bash
sudo apt purge amdgpu-install
sudo apt autoremove
.. tab-item:: RHEL

.. code-block:: bash
sudo dnf remove amdgpu-install
.. tab-item:: SLES

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

.. tab-set::

.. tab-item:: Ubuntu

.. 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
# Restart the system
sudo reboot
.. tab-item:: RHEL

.. 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
# Restart the system
sudo reboot
.. tab-item:: SLES

.. 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
# Restart the system
sudo reboot
Additional options
=================================================

Expand Down
14 changes: 7 additions & 7 deletions docs/install/native-install/rhel.rst
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
# 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/yum
# 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
20 changes: 7 additions & 13 deletions docs/install/native-install/sles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,22 @@ 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
# Remove the 'ROCm' and 'amdgpu' repositories
sudo zypper removerepo "ROCm-|rocm_version|"
sudo zypper removerepo "amdgpu"
# 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.
# Clear the cache and clean the system
sudo zypper clean --all
sudo zypper refresh
# Restart the system.
# Restart the system
sudo reboot
6 changes: 3 additions & 3 deletions docs/install/native-install/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ Remove ROCm and AMDGPU repositories

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

0 comments on commit 686039a

Please sign in to comment.