Functional Bytes

Downgrading Arch Packages

WARNING

Downgrading a package and/or ignoring upgrades is not officially supported and carries risks of mismatched packages. See Partial upgrades are unsupported

  • Find the previous version in the cache
# For pacman
ls -lha /var/cache/pacman/pkg/

# For yay
ls -lha ls -lha ~/.cache/yay/
  • Perform an "upgrade" to the previous version
# For pacman, use the file:// uri
pacman -U file:///var/cache/pacman/pkg/package-old_version.pkg.tar.zst

# For yay, use the raw path
yay -U /home/user/.cache/yay/package_name/package-old_version.pkg.tar.zst

To ignore upgrades, see Pacman - Skip package from being upgraded

References