rpm 5.x in Th
Tomasz Pala
gotar at polanet.pl
Mon Sep 24 00:02:49 CEST 2012
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 <gotar at pld-linux.org>
More information about the pld-devel-en
mailing list