rpm 5.x in Th

Łukasz Chrustek lukasz at chrustek.net
Sun Sep 23 23:59:48 CEST 2012


Hello,

> 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
:).

-- 
Pozdrawiam,
 Łukasz Chrustek



More information about the pld-devel-en mailing list