Warning: Don’t do this unless it is completely necessary!
- Having old and outdated packages in your Arch Linux is not recommended. Read our news articles on the website and our forum if users have reported any problem, in case there is a problem don’t update and wait for one or two days to see if the problem is fixed upstream.
- If this kind of downgrade fails for any reason, you will end up with a broken system.
I already have covered how to downgrade a single package and the kernel. This article is about how to downgrade all packages to a specific date. The reason for doing this can be because the system might be broken after a recent system upgrade. In such a case, you might have to downgrade more than one packages to a previous working version.
If you have no choice and want to fix your unstable system you can downgrade all packages to a previous specific version.
In this example we’re going to set the system back to the version that was installed on 20 June 2019
To do so, first backup your
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
Then, edit file /etc/pacman.conf:
sudo nano /etc/pacman.conf
Replace the existing content with the following lines:
[core] SigLevel = PackageRequired Server=https://archive.archlinux.org/repos/2017/08/18/$repo/os/$arch [extra] SigLevel = PackageRequired Server=https://archive.archlinux.org/repos/2017/08/18/$repo/os/$arch [community] SigLevel = PackageRequired Server=https://archive.archlinux.org/repos/2019/06/20/$repo/os/$arch
You can also edit
sudo nano /etc/pacman.d/mirrorlist
Replace the following line
Save and close the file with ctrl+o and ctrl+x
Then update the system with:
sudo pacman -Syyuu
Reboot the system and it will boot into the version of the given date.