On Tue, Nov 23, 2010 at 4:07 PM, Narendra Sisodiya <[email protected]> wrote: > > > On Tue, Nov 23, 2010 at 11:29 PM, Narendra Sisodiya > <[email protected]> wrote: >> >> 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;}' >> > > Similar method - > http://www.debianadmin.com/recursively-lists-package-dependencies-using-apt-rdepends.html > apt-rdepends > I am doing this because, I want to create a dependency chart. If we know the > packages which are commons in most of the package then we can create a base > version of Linux. On top of baseLinux we can bundle application to have one > click system.
To generate charts, especially from scripts, i'd suggest you try graphviz. I've found it to be very handy for such tasks. SB -- l...@iitd - http://tinyurl.com/ycueutm
