Goetz Waschk wrote:

>Am Freitag,  2. August 2002, 13:56:50 Uhr MET, schrieb Oden Eriksson:
>  
>
>>Hi rpm gurus.
>>
>>Is there an easy way to check if two rpm:s has conflicting files?
>>    
>>
>Hi,
>
>you could install both :-)
>
>  
>
>>I'm testing a new mod_perl for apache2.
>>    
>>
>You could try something like rpm -qpl your.rpm|xargs urpmf to see if
>some package registered to urpmi contains the same file.
>
>CU 
> 
>  
>
Maybe this script can help. There is a bug: it doesn't like spaces in 
the filenames...

#!/usr/bin/perl

my %count;
my %packages;
open F, "parsehdlist --files --quiet /var/lib/urpmi/hdlist.* |";
while (<F>) {
/([^:]*):(\S*)/ or next;
# print "$2", "\n";
$count{$2} = $count{$2} + 1;
$package{$2} = "${1}" . " " . "$package{$2}";
}

foreach $a (sort keys %count) {
        if ( $count{$a} >= 2 ) {
                print "$a $package{$a}\n";
        }
}

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to