Introduction
You may need to revert installed packages to the version installed prior to a recent update. This article provides the procedure to undo the yum/dnf transaction.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Use the
history
command to find the transaction ID.[root@server ~]cPs# dnf history
ID | Command line | Date and time | Action(s) | Altered
------------------------------------------------------------------------------------------------------------------------------------------------------
592 | -y --color=never --verbose shell /tmp/4pz6SmIyFe | 2025-02-20 14:01 | I, U | 106 EE
591 | --assumeyes --color=never --config /etc/yum.conf update --enablerepo=powertools --enablerepo=ep | 2025-02-20 00:13 | Upgrade | 1 - Use the
history undo
command to revert the changes made during the transaction.dnf history udo $ID
Please note that "$ID" must be replaced with the transaction ID to be undone.
Comments
0 comments
Article is closed for comments.