Tuxtips - Linux HowTos

Linux HowTos live here

How to downgrade a package in Arch Linux

08 Jul 2020

Note: this method works only if you have earlier versions of the package in your pacman cache, i.e. you installed a package and upgraded it at some point and want to revert to an earlier version.
Another note: there might be some version conflicts that will not be handled by pacman, so you will need to take care of that yourself, although I have not run into this kind of problems so far.

You simply need to run the following command in your terminal (as root):
# pacman -U /var/cache/pacman/pkg/package-old_version.pkg.tar.xz
where package-old_version.pkg.tar.xz is a package version file you can find in the /var/cache/pacman/pkg directory (you need to check that first).

Obviously, you need to be careful when doing subsequent upgrades, since the old version will be upgraded again.
Tested on: Arch Linux, June 2020.
Comments Add your comment

Enter the digit "one" (spam protection):

website for sale
This website is for sale! Click here.
I use a secure and private e-mail service.
Why don't you try it?