#!/usr/bin/perl
use strict;
use URPM;
URPM::DB::open()->traverse(sub {
my ($package) = @_;
my $name = $package->fullname;
my @modes = $package->files_mode;
printf "$name:$_:%04o\n",(shift @modes) & 07777 for $package->files;
});
At least this works on a Mandrakelinux system. URPM.pm, the perl bindings to RPMs, are not backported to CPAN (-- yet).
number of lines. (Score:1)
Hope you are taking this the next step and automating the setting of these permissions.
It would take quite a long time to do them manually...
Re:number of lines. (Score:2)
Re:number of lines. (Score:1)
Good thing I don't need any exercise!