CachyOS kernel downgrade, fish shell version
Kernel sources for DKMS = linux-cachyos-headers
set TARGET_VER “7.0.11-1”
set TARGET_KREL “7.0.11-1-cachyos”
set ARCH_SUFFIX “x86_64_v3”
set REPO " Nginx Directory "
Check current kernel stack
uname -r
pacman -Q linux-cachyos linux-cachyos-headers linux-cachyos-nvidia-open
Optional safety snapshot
sudo snapper create --description “Before kernel downgrade to $TARGET_VER”
Try installing from local pacman cache first
sudo pacman -U
/var/cache/pacman/pkg/linux-cachyos-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
/var/cache/pacman/pkg/linux-cachyos-headers-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
/var/cache/pacman/pkg/linux-cachyos-nvidia-open-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
If the cache install failed because files were missing, download them
mkdir -p ~/kernel-downgrade-$TARGET_VER
cd ~/kernel-downgrade-$TARGET_VER
curl -LO $REPO/linux-cachyos-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
curl -LO $REPO/linux-cachyos-headers-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
curl -LO $REPO/linux-cachyos-nvidia-open-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
sudo pacman -U
linux-cachyos-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
linux-cachyos-headers-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
linux-cachyos-nvidia-open-$TARGET_VER-$ARCH_SUFFIX.pkg.tar.zst
Verify kernel, headers, and NVIDIA module match
pacman -Q linux-cachyos linux-cachyos-headers linux-cachyos-nvidia-open
ls /usr/lib/modules/ | grep $TARGET_KREL
Rebuild DKMS for the downgraded kernel
sudo dkms autoinstall -k $TARGET_KREL
sudo depmod -a $TARGET_KREL
dkms status
Regenerate CachyOS/Limine boot files
sudo limine-mkinitcpio
Exclude the kernel stack from future updates
sudo sed -i ‘/^IgnorePkg[[:space:]]*=/d’ /etc/pacman.conf
sudo sed -i ‘/^[options]/a IgnorePkg = linux-cachyos linux-cachyos-headers linux-cachyos-nvidia-open’ /etc/pacman.conf
Verify IgnorePkg is under [options], before [multilib]
grep -n -E ‘^[options]|^IgnorePkg|^[multilib]’ /etc/pacman.conf
Final checks before reboot
pacman -Q linux-cachyos linux-cachyos-headers linux-cachyos-nvidia-open
dkms status
ls /usr/lib/modules/ | grep $TARGET_KREL
Reboot
sudo reboot
After reboot, verify
uname -r
pacman -Q linux-cachyos linux-cachyos-headers linux-cachyos-nvidia-open
dkms status
nvidia-smi
EDIT: I am using my PC for work so I will not experiment downgrading only the kernel, and Linux is not Windows, the kernel and drivers most times go hand in hand, plus if I downgraded the drivers makes sense to me to downgrade libs using it for stability.