X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=opt%2FLinux%2Fbin%2Fredhat_build_date;fp=opt%2FLinux%2Fbin%2Fredhat_build_date;h=aa234b407dac04cad5af2be8bf45d39295ff65f9;hb=08392e37a0280a6943b36d0b857f916cd650a3d5;hp=0000000000000000000000000000000000000000;hpb=153e5b86e7454dfddde944b08b8fbd548d6c739c;p=profile.git diff --git a/opt/Linux/bin/redhat_build_date b/opt/Linux/bin/redhat_build_date new file mode 100755 index 0000000..aa234b4 --- /dev/null +++ b/opt/Linux/bin/redhat_build_date @@ -0,0 +1,5 @@ +#!/usr/bin/perl + +use POSIX qw(strftime); +my $date = `rpm -q --queryformat='%{INSTALLTIME}\n' basesystem`; +printf strftime("%Y-%m-%d\n", localtime $date);