On Sun, Sep 23, 2012 at 23:59:48 +0200, Łukasz Chrustek wrote: >> 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 > > > Thank You, Tomek, this 1-liner will be usefull with some more packages > :).
Beware, as Jeff-the-Understandig said it will break if you have had your clock skewed! In contrary - his rpm will break always, so it's much more reliable! ;) -- Tomasz Pala <[email protected]> _______________________________________________ pld-devel-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
