Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.46 KB

Rollback_a_System_Update_on_Arch_Linux.md

File metadata and controls

53 lines (33 loc) · 1.46 KB

Author: Keyitdev
Source: Keyitdev/notes
Last edited on: 11 Apr 2024

Rollback a system update on Arch Linux

Back up mirrorlist

sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.old

Edit mirrorlist (see available archives)

echo 'Server=https://archive.archlinux.org/repos/2024/04/11/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist

Do a full system upgrade

Double y refreshes your package database, double u allows pacman to downgrade packages.

sudo pacman -Syyuu

Issues with Revoked Package Keys

You may encounter issues if you are rolling back any packages to versions which are signed using a signature that has since been removed from the pacman-key gpg database.

To get around this, you can remove affected packages.

sudo pacman -R package-name

Or set SigLevel to TrustAll in /etc/pacman.conf.

[custom]
SigLevel = TrustAll

Warning: The SigLevel = TrustAll option exists for debugging purposes and makes it very easy to trust keys that have not been verified. Package and database signature checking.

Change it back when you are done.

Sources

https://wiki.archlinux.org/title/Arch_Linux_Archive

https://www.rdeeson.com/weblog/176/how-to-rollback-a-system-update-on-arch-linux