Following command will list out the dependency of a package.
sudo apt-get install --dry-run eclipse | sed -n '/The following NEW/{n; :a;
$!N;s/\n[[:blank:]][[:blank:]]/ /;ta;P;D;}'
sudo apt-get install --dry-run expect | sed -n '/The following NEW/{n; :a;
$!N;s/\n[[:blank:]][[:blank:]]/ /;ta;P;D;}'-- ┌─────────────────────────┐ │ Narendra Sisodiya │ http://narendrasisodiya.com └─────────────────────────┘ -- l...@iitd - http://tinyurl.com/ycueutm
