#!/usr/bin/perl -w ($SELF = $0) =~ s,.*/,,; if(@ARGV) { print <) { my $r = reverse; my @a = split /-/, $r, 4; my $pkg = reverse $a[3]; $installed{$pkg}++; } open my $pipe, "wget -qO- $URL | gzip -dc |" or die $!; while(<$pipe>) { chomp; next unless m{^SLACKBUILD NAME: (.*)$}; $in_repo{$1}++; } close $pipe; $count = 0; for(sort keys %installed) { $count++, print "$_\n" unless $in_repo{$_}; } exit ($count != 0);