-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve uninstall instructions for package manager/amdgpu-installer (…
…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
1 parent
b5b8dd8
commit be32bdc
Showing
6 changed files
with
308 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
.. meta:: | ||
:description: Debian native installation | ||
:keywords: ROCm install, installation instructions, Debian, Debian native installation, AMD, ROCm | ||
|
||
**************************************************************************** | ||
Debian native installation | ||
**************************************************************************** | ||
|
||
.. important:: | ||
|
||
Ensure that the :doc:`/install/prerequisites` are met before installing. | ||
|
||
.. _debian-register-repo: | ||
|
||
Registering ROCm repositories | ||
================================================= | ||
|
||
.. _debian-package-key: | ||
|
||
Package signing key | ||
--------------------------------------------------------------------------- | ||
|
||
Download and convert the package signing key. | ||
|
||
.. code-block:: bash | ||
# Make the directory if it doesn't exist yet. | ||
# This location is recommended by the distribution maintainers. | ||
sudo mkdir --parents --mode=0755 /etc/apt/keyrings | ||
# Download the key, convert the signing-key to a full | ||
# keyring required by apt and store in the keyring directory | ||
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \ | ||
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null | ||
.. _debian-register-driver: | ||
|
||
.. note:: | ||
|
||
The GPG key may change; ensure it is updated when installing a new release. | ||
If the key signature verification fails while updating, | ||
re-add the key from the ROCm to the apt repository as mentioned above. | ||
|
||
Register kernel-mode driver | ||
--------------------------------------------------------------------------- | ||
|
||
Add the AMDGPU repository for the driver. | ||
|
||
.. datatemplate:nodata:: | ||
.. tab-set:: | ||
{% for (os_version, os_release) in config.html_context['debian_version_numbers'] %} | ||
.. tab-item:: Debian {{ os_version }} | ||
:sync: debian-{{ os_version}} | ||
|
||
.. code-block:: bash | ||
:substitutions: | ||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/|rocm_version|/ubuntu {{ os_release }} main" \ | ||
| sudo tee /etc/apt/sources.list.d/amdgpu.list | ||
sudo apt update | ||
{% endfor %} | ||
|
||
.. _debian-register-rocm: | ||
|
||
Register ROCm packages | ||
--------------------------------------------------------------------------- | ||
|
||
Add the ROCm repository. | ||
|
||
.. datatemplate:nodata:: | ||
.. tab-set:: | ||
{% for (os_version, os_release) in config.html_context['debian_version_numbers'] %} | ||
.. tab-item:: Debian {{ os_version }} | ||
:sync: debian-{{ os_version}} | ||
|
||
.. code-block:: bash | ||
:substitutions: | ||
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/|rocm_version| {{ os_release }} main" \ | ||
| sudo tee --append /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 | ||
{% endfor %} | ||
|
||
.. _debian-install: | ||
|
||
Installing | ||
================================================ | ||
|
||
Install kernel driver | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo apt install amdgpu-dkms | ||
sudo reboot | ||
Install ROCm packages | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo apt install rocm | ||
Complete the :doc:`../post-install`. | ||
|
||
|
||
.. _debian-upgrade: | ||
|
||
Upgrading | ||
================================================ | ||
|
||
To upgrade an existing ROCm installation to a newer version, follow the steps in | ||
:ref:`debian-register-repo` and :ref:`debian-install`. | ||
|
||
.. note:: | ||
|
||
Upgrading the kernel driver may also upgrade the GPU firmware, which requires a | ||
system reboot to take effect. | ||
|
||
.. _debian-uninstall: | ||
|
||
Uninstalling | ||
================================================ | ||
|
||
Uninstall specific meta packages | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
:substitutions: | ||
# sudo apt autoremove <package-name> | ||
# For example: | ||
sudo apt autoremove rocm | ||
# Or for version specific packages: | ||
sudo apt autoremove rocm|rocm_version| | ||
Uninstall ROCm packages | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
:substitutions: | ||
sudo apt autoremove rocm-core | ||
# Or for version specific packages: | ||
sudo apt autoremove rocm-core|rocm_version| | ||
Uninstall kernel-mode driver | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
sudo apt autoremove amdgpu-dkms | ||
Remove ROCm and AMDGPU repositories | ||
--------------------------------------------------------------------------- | ||
|
||
.. code-block:: bash | ||
# 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 | ||
sudo rm -rf /var/cache/apt/* | ||
sudo apt clean all | ||
sudo apt update | ||
# Restart the system | ||
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.