Adding CachyOS Repository for Enhanced Arch Linux Performance
Installing CachyOS repositories
Option 1: Automated Installation of cachyos repositories
We’ve made it easy for you! Simply run the following commands to use our helper script that does all the work for you. 😉
Run the following commands:
- Get archive with the script
- Extract and enter into the archive
- Run the script with sudo
Behavior of the script
- The script will auto-detect the CPU architecture, if the CPU has
x86-64-v4
orx86-64-v3
support, the script will automatically use the repositories which are optimized with this flag > and some other flags. - The script will backup your old
pacman.conf
.
For more information, check out our GitHub or join our Discord community.
Option 2: Manual Installation
- Install the cachyos keyring
- Install required packages
Check CPU compatibility
If you want to add our repositories manually, you must check the compatibility of your CPU with CachyOS repositories.
If you are using the script above to add the CachyOS repositories, you can skip the check.
1. Check support by running the following the command
2. Understanding the command output
Pay attention to the following text with brackets. (supported, searched)
- If you see
x86-64-v4 (supported, searched)
, that means the CPU is compatible and can use the x86-64-v4 instruction set. - If you see
x86-64-v4
, that means the CPU is incompatible and cannot use the x86-64-v4 instruction set.
Example of CPU compatible with the x86-64-v4 instruction set
Example of CPU incompatible with the x86-64-v4 instruction set
3. Adding the CachyOS repositories
You need to edit pacman.conf
and add the repositories ABOVE THE EXISTING ARCHLINUX REPOS
If your CPU supports only x86-64
, then only add the [cachyos]
repository
If your CPU supports x86-64-v4
, then add [cachyos-v4]
, [cachyos-core-v4]
, [cachyos-extra-v4]
and [cachyos]
If your CPU supports x86-64-v3
, then add [cachyos-v3]
,[cachyos-core-v3]
,[cachyos-extra-v3]
and [cachyos]
Finally, update your system with the CachyOS packages:
Enjoy your improved system speed with optimized CachyOS packages! 🎉
Debug packages
We provide a debuginfod server for easy access to debug symbols via gdb
. Set the following environment variable:
Debug packages are available in the cachyos-debug-v3
repository. Add it with the following configuration:
Uninstalling CachyOS repositories
ATTENTION: Since pacman 6.1 Arch has introduced a validation layer for features. Since we provide a fork of pacman, which adds various features, there will be an influx of warnings, when downgrading to the archlinux pacman, due the missing “Installed from” Feature. We have tried to push this feature to pacman, since various people and maintainer were interested in, but got declined by the pacman maintainer.
This can be resolved with installing the archlinux pacman first before reinstalling all packages.
Option 1: Automated Removal
Run these commands to remove the CachyOS repos from your system:
Option 2: Manual Removal
- Backup or remove the config file at
/etc/pacman.conf
. - Run this command:
- Switch to default Arch Linux packages with this command: