[Yum] Yum and rollbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Panu Matilainen wrote:

> Put 'tsflags=repackage' into /etc/yum.conf. Note that this will only make 

Yes!!! That's it!!! Thanks mate!!! Here's the testing erasure:

------------------------ begin ----------------------------------------
[root@munja RPMS]# yum localinstall sylpheed-2.0.1-1.athlon.rpm
Setting up Local Package Process
Examining sylpheed-2.0.1-1.athlon.rpm: sylpheed - 2.0.1-1.athlon
Marking sylpheed-2.0.1-1.athlon.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package sylpheed.athlon 0:2.0.1-1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 sylpheed                athlon     2.0.1-1
sylpheed-2.0.1-1.athlon.rpm  4.9 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: sylpheed                     ######################### [1/1]

Installed: sylpheed.athlon 0:2.0.1-1
Complete!
[root@munja RPMS]# yum remove sylpheed
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package sylpheed.athlon 0:2.0.1-1 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 sylpheed                athlon     2.0.1-1          installed         4.9 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       1 Package(s)
Total download size: 0
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Repackage : sylpheed                     ######################### [0/1]
  Removing  : sylpheed                     ######################### [1/1]

Removed: sylpheed.athlon 0:2.0.1-1
Complete!
[root@munja RPMS]# up2date --list-rollbacks
install time: Sat Oct 22 13:17:21 2005   tid:1129979841
                [-] gimp-help-2-0.1.0.7.1:
                [-] java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh.FC4.1:
                [+] java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh.FC4.2:
                [+] gimp-help-2-0.1.0.9.0.fc4.1:

install time: Mon Oct 24 15:37:22 2005   tid:1130161042
                [-] sylpheed-2.0.1-1:


[root@munja RPMS]# rpm -Uvh --rollback '1 hour ago'
Rollback packages (+1/-0) to Mon Oct 24 15:37:22 2005 (0x435ce392):
Preparing...                ###########################################
[100%]
   1:sylpheed               ###########################################
[ 50%]
Cleaning up repackaged packages:
        Removing /var/spool/repackage/sylpheed-2.0.1-1.athlon.rpm:
[root@munja RPMS]#
---------------------------- end ---------------------------------

> yum repackage on erasure/upgrade, yum doesn't currently know anything
> about performing rollbacks to those packages.

Yep, but 'rpm -Uvh --rolback' is just fine even if rpm doesn't resolve
dependencies. But dependencies are resolved during the upgrade, so it's
not a problem :)

Thanks again! :)

P.S. You should make that option in yum.conf or to put that in man
yum.conf, or something...

-- 
Igor Jagec


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux