WRITELOOP

LOCK AND/OR DOWNGRADE PACKAGES ON ARCH LINUX

Sometimes we want some packages to not be upgraded, or to downgrade them to previous versions. Here is how to do that.

2024 June 21

NOTE: the instructions below also work on distributions derived from Arch Linux (e.g. EndeavourOS)

How to pin a package

  • Edit /etc/pacman.conf

  • Add a IgnorePkg directive. Example:

IgnorePkg = hyprland

This will freeze the package “hyprland” on the current version and will stop it from updating.

How to downgrade a package

If there is a cached version on your machine, you can get it from there. Example:


ls /var/cache/pacman/pkg/hyprland*
sudo pacman -U /var/cache/pacman/pkg/hyprland-0.39.pkg.tar.zst

If it is not on your machine, you can try to search for it on the Arch Linux Archive.

You can try to find it by:

Then, after downloading the .zst file you can install it as stated above:


sudo pacman -U ~/Downloads/hyprland-0.39.pkg.tar.zst