Feature #22563
Updated by Peter Amstutz about 1 month ago
https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/install-methods/package-manager-index.html
This is pretty straightforward: get the package signing key, set up two 3rd party debian repos (one for the driver, one for the ROCm tools), then install "amdgpu-dkms" and "rocm" packages.
Apparently each ROCm version gets its own package, so "rocm" is actually just a metapackage pointing to the latest, which is called "rocmX.Y.Z" (e.g. "rocm6.3.2").
(The stated reason is to support installing multiple versions of ROCm for testing).