cd /news/ai-infrastructure/fedora-rocm-10-setup-with-tarball-al… · home › topics › ai-infrastructure › article
[ARTICLE · art-140469] src=gist.github.com ↗ pub= topic=ai-infrastructure verified=true sentiment=· neutral

Fedora ROCM 10 Setup with Tarball along with maintinance scripts

A developer documented a method for installing AMD's ROCm 10 on Fedora using the vendor's TheRock tarball, which bypasses the OS check that blocks Fedora in AMD's runfile and dnf repositories. The setup centers on a single $ROCM_HOME with a versioned directory layout and symlinked 'current' pointer, plus check-update.sh and update.sh maintenance scripts, and serves llama.cpp, stable-diffusion.cpp and whisper.cpp builds targeting the gfx1151 GPU.

by read2 min views2 publishedSep 27, 2026

Why tarball: AMD's runfile and dnf repos block Fedora (fedora is not a supported OS). The tarball has no OS check. One $ROCM_HOME serves llama.cpp, stable-diffusion.cpp, whisper.cpp.

~/therock-tarball/
  env.sh            source from ~/.bashrc (PATH, ROCM_HOME=./current)
  check-update.sh   installed vs upstream gfx1151 tarballs
  update.sh <VER>   download + extract + verify + flip ./current
  current -> versions/<VER>/install   (all builds point here, never a version)
  versions/<VER>/install              (keep last known-good for rollback)
  therock-dist-linux-gfx1151-<VER>.tar.gz
sudo dnf install libatomic libquadmath numactl-libs perl gcc gcc-c++ cmake
sudo dnf remove rocm-* hipblas* hipcc rocminfo hsa-rocr hsa-rocr-devel amdgpu-install
sudo dnf autoremove
sudo rm -f /etc/yum.repos.d/rocm.repo
sudo rm -rf /opt/rocm-7.1.0 /usr/lib64/rocm
cd ~/therock-tarball
./check-update.sh
./update.sh 10.0.0
echo 'source "$HOME/therock-tarball/env.sh"' >> ~/.bashrc
echo "$HOME/therock-tarball/current/lib" | sudo tee /etc/ld.so.conf.d/rocm-10.conf
sudo ldconfig
source ~/therock-tarball/env.sh
rocminfo | grep -i -m2 gfx1151
$ROCM_HOME/bin/amd-smi list
hipcc --version
cd ~/therock-tarball
./check-update.sh
ln -sfn ~/therock-tarball/versions/<OLD>/install ~/therock-tarball/current
sudo ldconfig
rm -rf ~/therock-tarball/versions ~/therock-tarball/*.tar.gz ~/therock-tarball/current
sudo rm -f /etc/ld.so.conf.d/rocm-10.conf
sudo ldconfig
source ~/therock-tarball/env.sh
cmake -B build-rocm -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 \
  -DCMAKE_HIP_ARCHITECTURES=gfx1151 -DCMAKE_HIP_COMPILER=$ROCM_HOME/bin/amdclang++
cmake -B build-rocm -DSD_HIPBLAS=ON -DGPU_TARGETS=gfx1151 \
  -DCMAKE_HIP_ARCHITECTURES=gfx1151 -DCMAKE_HIP_COMPILER=$ROCM_HOME/bin/amdclang++

If hipcc fails with ModuleNotFoundError, use amdclang++ (as above).

Host-level monitors live in ~/gpu-tools/ (own README + update scripts): radeontop / nvtop via dnf, amdgpu_top via upstream RPM. rocminfo / amd-smi come from this tarball: $ROCM_HOME/bin/rocminfo.

  • rocminfo: command not found - env not loaded:source ~/therock-tarball/env.sh (new shells need the.bashrc line + reopen).

  • VERIFY FAILED fromupdate.sh - check/tmp/rocminfo-verify-<VER>.txt head output; GPU busy or HSA hiccup: just rerun./update.sh <VER> (download is skipped,./current is only flipped on success).

  • error while shared libraries when running built binaries -sudo ldconfig was missed after a flip, or the program was built against a deletedversions/<OLD> : rebuild it.

  • Never mix Fedora rocm-* dnf packages with this tarball.

  • Tarball + one extract ~= 4 GB. If disk bites, the big consumers on this box are ~/models +~/.cache/huggingface , not ROCm.

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @amd 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/fedora-rocm-10-setup…] indexed:0 read:2min 2026-09-27 · —