Skip to content

Optimized Repositories

To deliver a performance-optimized distribution, CachyOS recompiles Arch Linux packages specifically for the x86-64-v3, x86-64-v4, and Zen4+ architectures.

  • x86-64-v3: 5%-20% performance uplift compared to x86-64.
  • x86-64-v4: Delivers substantial performance gains through AVX512 support, depending on the workload.
  • Zen 4/5: In addition to the x86-64-v4 instruction set, the following instructions are added:
abm, adx, aes, avx512bf16, avx512bitalg, avx512ifma, avx512vbmi, avx512vbmi2, avx512vnni,
avx512vpopctndq, clflushopt, clwb, clzero, fsgsbase, gfni, mwaitx, pclmul, pku, prfchw,
rpdid, rdrnd, rdseed, sha, sse4a, vaes, vockmulqdq, wbnoinvd, savec, xsaveopt, xsaves

To learn more about these architectures, check this Wikipedia article.

Our CachyOS-PKGBUILDs repository contains packages that receive ongoing updates, patches, and backported fixes. To boost performance, we selectively implement PGO, LTO, and BOLT optimizations depending on the need. We also maintain a couple of -git packages e.g mesa-git.

Introducing our new package search page for CachyOS. You can now easily search for packages and access detailed information, such as their compilation architecture, last update date, and more.

Migrating from x86-64-v3 to x86-64-v4 or znver4

Section titled “Migrating from x86-64-v3 to x86-64-v4 or znver4”

If you’re currently using the x86-64-v3 repositories and your new CPU supports x86-64-v4 (or AMD Zen 4/5), you can migrate by following these steps:

  • Verifying x86-64-v4 support:
    Run the following command:
    /lib/ld-linux-x86-64.so.2 --help | grep supported
    • x86-64-v4 (supported, searched) → CPU supports v4
    • ❌ No x86-64-v4 line → CPU does not support v4

Example (CPU supports v4):

Terminal window
$ /lib/ld-linux-x86-64.so.2 --help | grep supported
x86-64-v2 (supported, searched)
x86-64-v3 (supported, searched)
x86-64-v4 (supported, searched)
  • For AMD Zen 4/5 CPUs, check if your CPU reports znver4 or znver5:
    • Run the following command:
      Terminal window
      gcc -march=native -Q --help=target 2>&1 | grep -Po "^\s+-march=\s+\K(\w+)\$"
      If the output is znver4 or znver5, you can proceed with the migration.
  1. Edit /etc/pacman.conf and replace your x86-64-v3 repositories with one of the following depending on your CPU support:

    /etc/pacman.conf
    [cachyos-v4]
    Include = /etc/pacman.d/cachyos-v4-mirrorlist
    [cachyos-core-v4]
    Include = /etc/pacman.d/cachyos-v4-mirrorlist
    [cachyos-extra-v4]
    Include = /etc/pacman.d/cachyos-v4-mirrorlist

    Keep [cachyos], [core], [extra], and [multilib] unchanged.

  2. Clear the package cache and synchronize databases:

    Terminal window
    sudo pacman -Scc # Confirm with 'y' twice
    sudo pacman -Sy
  3. Reinstall all packages to switch to the new architecture:

    Terminal window
    pacman -Qqn | sudo pacman -S -
  4. Reboot your system.


Adding Our Repositories to an Existing Arch Linux Install

Section titled “Adding Our Repositories to an Existing Arch Linux Install”

We provide a script that automates the installation of our repositories to your existing Arch-based installs.

Terminal window
curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
tar xvf cachyos-repo.tar.xz && cd cachyos-repo
sudo ./cachyos-repo.sh

Run the following commands to remove the CachyOS repositories from your system:

Terminal window
curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
tar xvf cachyos-repo.tar.xz
cd cachyos-repo
sudo ./cachyos-repo.sh --remove

Michael from Phoronix has already benchmarked CachyOS a couple of times, which is shown mostly leading in the benchmark graphs and on the Geometric Mean of All Test Results. Since the first benchmark made back in 2022, CachyOS has evolved and matured a lot more in terms of usability and performance.

If you would like to know more about the performance uplift from our repositories, please check the links below.