For example, if you have 3 transactions, where package A; B and C where installed respectively. You can use centos vault url for the rpms. # yum history redo id. However, it’s mostly used on CentOS and RHEL. We will provide root privilege with sudo command. We can install, remove or update packages using the yum command. This is quick tip, howto downgrade packages using YUM (example) on Fedora, CentOS, Red Hat (RHEL).This works simply with yum downgrade command and is very usefull when package(s) downgrade is needed some reason.. YUM Downgrade Basic Usage. This will downgrade a package to the previously highest version or you can specify the whole version and release number for the package to downgrade as follows: # yum downgrade httpd-2.2.15-59.el6.centos.x86_64 In the case of distros using the RPM package, yum is the package manager. The yum history rollback option. The syntax is: # yum history rollback id The rollback command will undo all transactions up to the point of the specified transaction. yum is mainly used by rpm based distributions to manage operating system packages.yum have a lot of features but one of the most used feature is removing packages from operating system. In this tutorial we will look how to delete or remove packages with yum.. We need root privileges all uninstall operations. But can we rollback an update that has been installed on the system ? Yum is default package manager for RPM based Linux distributions like RHEL, CentOS & is used to managing packages for the system. The history option with yum uses the transaction to rollback/undo the operation. This is a better approach than updating the system as a whole. Sometimes a package update may lead to unexpectable problems on your system. make sure you have a valid backup of the system before proceeding. In the following example, transaction 2 was a update operation, as seen below, the redo command that follows will repeat transaction 2 upgrading all the packages updated by that time: Like I … # yum downgrade package1 # yum downgrade package1 package2 Example To downgrade httpd, enter: # yum downgrade httpd. 1) Download all the packages for which the message Failed to downgrade is displayed. It is very helpful if we can revert the update in such cases. So, updating the packages as subsets gives the flexibility to roll them back. Rollback and reinstall package Warnings – Do not say yes to any transaction without checking and cross-checking what it would remove; system libraries that are removed can be problematic. Downgrade is very straightforward when package have not any dependencies, which affect the downgrade. This guide showcases how to uninstall a yum package. # yum history undo 2 #will remove package W # yum history redo 2 #will reinstall package W # yum history rollback 2 #will remove packages from X, Y, and Z. The command yum history helps to … Depending on what type of package the distro uses, the package manager differs. 2) Put all the rpms in a directory ( say /tmp/yum_repo_test/) 3) Create a local repository createrepo --update /tmp/yum_repo_test/ 4) Create a file /etc/yum.repos.d/temp.repo with the following content: How to roll back an update in CentOS or RedHat. It does involve making some configuration changes to yum, but seems pretty easy. To summarize the link: Add ‘tsflags=repackage’ to /etc/yum.conf ; Add ‘%_repackage_all_erasures 1’ to /etc/rpm/macros; And when you want to rollback use the ‘--rollback’ flag within rpm. This post explains how to roll back an update in CentOS using yum. Update the 'device-mapper' package with update device-mapper. It’s available on CentOS, RHEL, and other RPM-based distros (Fedora, and OpenSUSE, etc.).