blob: 30f3f2f1d16941e20dec2d73ec7b00d5e3d7ae7b (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/perl
$r = join '|', map { chop; $l{$_} = 1; quotemeta } `rpm -qa --queryformat "%{NAME}\n"`;
$R = qr/ $r/;
open F, "/etc/urpmi/depslist" or die "can't find depslist\n";
$R && /(\S+)-[^-]+-[^-]+ / && delete $l{$1} foreach <F>;
print "$_\n" foreach keys %l;
|