Red Hat Enterprise Linux 6 and 7 comes with the yum history option, see : How to use yum history to roll back an update in Red Hat Enterprise Linux 6, 7? This will list the transaction ID along with the date and time, the actions performed and the number of packages altered :-įor more information on a particular transaction, note the transaction ID for that transaction and use it in this command :- # yum history info The following command lists the history of all transactions :- # yum history list all The yum history command allows the user to view the history of transactions. Mostly this database can be found in the /var/lib/yum/history/ directory. The history is organized terms of transaction ids and is updated every time a yum transaction affects the package configuration of the system. Yum stores a sqlite database of information about each transaction.
They are not perfect and should be used with care
Here we can see that the newer version of httpd, httpd-manual and mod_ssl altogether are reinstalled with the older version of those RPMs, and no package is going to be removed for dependencies. To downgrade them altogether, you can add them in the command: ~]# yum downgrade httpd-2.2.3-22.el5 httpd-manual-2.2.3-22.el5 mod_ssl-2.2.3-22.el5 The httpd-manual and mod_ssl packages will also be removed (instead of downgrade) because the downgraded httpd cannot satisfy the dependency of the current version httpd-manual and mod_ssl. Otherwise, yum will remove the closely related packages in order to satisfy the dependency requirement.įor example, if you want to downgrade httpd : ~]# yum downgrade httpd-2.2.3-22.el5 Usually, for some closely related packages, you may want to downgrade them all together. Note that this may also remove the packages that depends on the current version of the package. For example: ~]# yum downgrade vsftpd-2.0.5-12.el5 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. In Yum 3.2.22, which come with Red Hat Enterprise Linux 5.4, there is a downgrade option.