Roll back a problematic update using the native downgrade and history mechanisms across RPM, yum/dnf-style transaction history, APT version pinning, and pacman cache installs. The goal is to restore a known-good package state while preserving a clear audit trail of what changed.
A recent patch introduced regressions and your priority is to return systems to a stable baseline. You will practice rollback workflows on multiple distro families so you can respond quickly when a package update breaks production behavior.
Rollback is a stabilization move. In the field, you typically pair it with incident notes: what changed, what version you reverted to, and how you validated recovery (service health, logs, and user impact).
rpm --oldpackage.
yum history.
.pkg.tar.zst file with pacman.
rpm -Uvh --oldpackage.
yum history undo.
apt install pkg=version.
pacman -U.
rpm -Uvh --oldpackage bash-5.1.rpm
--oldpackage allows installing an older version
over a newer one. This is a direct “restore known-good” move
when you have the correct RPM artifact available.
Preparing... ################################# [100%]
Updating / installing...
1: bash-5.1 ################################# [100%]
yum history undo last
yum history tracks prior transactions. Undoing
the last transaction is a fast way to revert an update that
caused immediate regressions.
Loaded plugins: fastestmirror
Undoing transaction 33...
Reverting installed/erased/updated packages...
sudo apt install bash=5.1-2ubuntu3
Specifying pkg=version forces APT to install that
exact version if it is available in your configured sources.
This is a clean, explicit downgrade path with clear intent.
Reading package lists... Done
The following packages will be downgraded:
bash
sudo pacman -U /var/cache/pacman/pkg/bash-5.1.pkg.tar.zst
Installing a cached package file is the standard Arch
rollback move when you have the previous artifact present in
/var/cache/pacman/pkg.
:: Processing package changes...
:: Downgrading bash...
rpm -Uvh --oldpackage <pkg.rpm>
: Install an older RPM version over a newer installed one.
yum history undo last
: Revert the most recent yum transaction.
apt install <pkg>=<version>
: Install a specific version of a package (downgrade if needed).
pacman -U /path/to/pkg.tar.zst
: Install a local package file (commonly used for downgrades
from the pacman cache).