rpm-4.2.3-24_nonptl rpm will fail to rollback to the original package if 2 upgrades with rollback have been done. Same problem exists on RHEL4. # ls -1 ksh-20040229-6.x86_64.rpm ksh-20040229-7.x86_64.rpm ksh-20040229-8.x86_64.rpm # date Thu Apr 13 16:43:44 BST 2006 # rpm -Uvh --oldpackage ksh-20040229-6.x86_64.rpm Preparing... ########################################### [100%] 1:ksh ########################################### [100%] # date Thu Apr 13 16:44:07 BST 2006 # rpm -Uvh --repackage ksh-20040229-7.x86_64.rpm Preparing... ########################################### [100%] Repackaging... 1:ksh ########################################### [100%] Upgrading... 1:ksh ########################################### [100%] # date Thu Apr 13 16:44:19 BST 2006 # rpm -Uvh --repackage ksh-20040229-8.x86_64.rpm Preparing... ########################################### [100%] Repackaging... 1:ksh ########################################### [100%] Upgrading... 1:ksh ########################################### [100%] # rpm -Uvh --rollback "Thu Apr 13 16:44:19 BST 2006" Rollback packages (+1/-1) to Thu Apr 13 16:44:46 2006 (0x443e71ee): Preparing... ########################################### [100%] 1:ksh ########################################### [ 50%] # rpm -q ksh ksh-20040229-7 # rpm -Uvh --rollback "Thu Apr 13 16:44:07 BST 2006" # ls /var/spool/repackage/ total 713kB 713kB ksh-20040229-6.x86_64.rpm # up2date --list-rollbacks install time: Thu Apr 13 16:44:17 2006 tid:1144943057 [-] ksh-20040229-6: # rpm -Uvh --rollback "Thu Apr 13 16:43:44 BST 2006" # up2date --list-rollbacks install time: Thu Apr 13 16:44:17 2006 tid:1144943057 [-] ksh-20040229-6:
Problem doesn't exist with RPM 4.4.3 from upstream
Rollback isn't supported in stand-alone RHEL. One should use the rollback functionality from RHN Satellite instead (which allows to rollback using pristine packages, rather than repackaged ones).