print out all dependencies of an unpacked distributions that are (not) packaged for Debian

| No Comments | No TrackBacks

# print out all dependencies of an unpacked distribution that are packaged for Debian
perl -MDebian::Apt::PM -MModule::Depends -le \
   '$apm=Debian::Apt::PM->new();$md=Module::Depends->new->dist_dir(".")->find_modules; %r=(%{$md->requires},%{$md->build_requires}); while (($m, $v) = each %r) { $f=$apm->find($m, $v); print $f->{"min"}->{"package"} if $f->{"min"} }' \
   | sort \
   | uniq \
   | xargs echo apt-get install

# print out all dependencies of an unpacked distribution that are not packaged for Debian
perl -MDebian::Apt::PM -MModule::Depends -le \
   '$apm=Debian::Apt::PM->new();$md=Module::Depends->new->dist_dir(".")->find_modules; %r=(%{$md->requires},%{$md->build_requires}); while (($m, $v) = each %r) { $f=$apm->find($m, $v); print $m, " ", $v if not $f->{"min"} }'

No TrackBacks

TrackBack URL: https://blog.meon.sk/admin/tb/111

Leave a comment

Pages

About this Entry

This page contains a single entry by Jozef Kutej published on March 9, 2010 10:47 AM.

Module::Name->method was the previous entry in this blog.

eq_deeply with Data::Dumper is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.