rpm Rollback
Rollback an installed/upgraded/erased RPM http://kernelmount.com/content/view/147/9/ Prerequisites: RPM package version should be greater then 4.0 In the configuration file /usr/lib/rpm/macros (for SLES) /etc/rpm/macros (for RHEL) The following two variables and their values should exist in the above configuration file. If variables not present or have different values, add/update them to following. %_repackage_dir /var/spool/repackage %_repackage_all_erasures 1 Check for existing Version of package to be upgrade/erase # rpm -qa | grep <package name to upgrade> Take time stamp to rollback # date Install or Upgrade: Use the repackage switch while installation / upgrade of new version of package/rpm. # rpm -Uvh - -repackage <NewPacakge version.rpm> # rpm -qa | grep <package name> (it should display the new package version) Erase / Remove Package: Use the repackage switch while removing the package/rpm. # rpm -e - -repackage <Package to remove.rpm> Roll Back an installed or upgraded RPM: Use the rollback switch with time while rollback an package/rpm # rpm -Uvh - -rollback 'HH:MM:SS' # rpm -Uvh - -rollback '16:35:00' (Example) # rpm -qa | grep <Package Name> (Should display the Old version of package / rpm )
No comments:
Post a Comment