rpm 5.x in Th

Tomasz Pala gotar at polanet.pl
Sun Sep 23 23:18:21 CEST 2012


On Sun, Sep 23, 2012 at 11:48:53 -0400, Jeffrey Johnson wrote:

> ? but triggers are executed as part of package management,
> changing file system state, and are not simply invertible.

Thus noone expect this to work or even exists.

> I do not understand your distinction.
>
> How is --rollback to be performed if operations are
> only partially reversed?

cd /var/spool/repackage; ls | perl -ne 'use Time::Local; my ($mday,$mon,$year,$hour,$min,$sec) = split(/[\s.:]+/, "23.04.2012 12:00:00"); my $time = timelocal($sec,$min,$hour,$mday,$mon-1,$year); print if $_>=$time' | sort -r | while read dir; do rpm -Uvh --oldpackage --force $dir/*; done

-- 
Tomasz Pala <gotar at pld-linux.org>


More information about the pld-devel-en mailing list