Simplify command

for the moment I didn't have better idea how to shrink the contents of dependencies.file but to filter lines where a package name belongs to the set of indirect packages.
this probably needs more test cases and docs and stuff
I know this works very well, but can we replace this with simple dictionary lookup?
Jst to make it easier to newcomers.