by jake

Can you show me something interesting with apt-cache and graphivz?

For instant satisfaction perform these commands (assumes debian, perhaps your package manager does an output of packes in dotty?)



apt-get install graphviz
apt-cache dotty iproute > iproute.dot
dotty -Tpng -oiproute.png iproute.dot

And it will output a png file with the relation of iproute to other packages on your system.

It will look like this:

The iproute.dot file on my system looks like this:
digraph packages {
concentrate=true;
size="30,40";
"iproute" -> "libc6";
"libc6" -> "libdb1-compat";
"libc6" -> "strace"[color=springgreen];
"libc6" -> "libnss-db"[color=springgreen];
"libc6" -> "timezone"[color=springgreen];
"libc6" -> "timezones"[color=springgreen];
"libc6" -> "gconv-modules"[color=springgreen];
"libc6" -> "libtricks"[color=springgreen];
"libc6" -> "libc6-doc"[color=springgreen];
"libc6" -> "libc5"[color=springgreen];
"libc6" -> "libpthread0"[color=springgreen];
"libc6" -> "libc6-bin"[color=springgreen];
"libc6" -> "libwcsmbs"[color=springgreen];
"libc6" -> "apt"[color=springgreen];
"libc6" -> "libglib1.2"[color=springgreen];
"libc6" -> "netkit-rpc"[color=springgreen];
"libc6" -> "wine"[color=springgreen];
"libc6" -> "php4"[color=springgreen];
"libc6" -> "file-rc"[color=springgreen];
"libdb1-compat" -> "libc6";
"php4" -> "libbz2-1.0";
"php4" -> "libc6";
"php4" -> "libdb2";
"php4" -> "libexpat1";
"php4" -> "libmm12";
"php4" -> "libpam0g";
"php4" -> "libpcre3";
"php4" -> "zlib1g";
"php4" -> "mime-support";
"php4" -> "apache-common";
"php4" -> "coreutils";
"php4" -> "php4-sablot"[color=springgreen];
"libpcre3" -> "libc6";
"libexpat1" -> "libc6";
"coreutils" -> "libc6"[color=blue];
"coreutils" -> "stat"[color=springgreen];
"libdb2" -> "libc6";
"libdb2" -> "libc6"[color=blue];
"libdb2" -> "libc6.1"[color=blue];
"libdb2" -> "libc0.2"[color=blue];
"libdb2" -> "libc0.3"[color=blue];
"libdb2" -> "lib-bdb2"[color=springgreen];
"wine" -> "debconf";
"wine" -> "libwine";
"wine" -> "xbase-clients";
"wine" -> "xcontrib";
"wine" -> "binfmt-support"[color=springgreen];
"zlib1g" -> "libc6";
"zlib1g" -> "zlib1"[color=springgreen];
"zlib1g" -> "zlib-udeb"[color=springgreen];
"debconf" -> "perl-base"[color=blue];
"debconf" -> "cdebconf"[color=springgreen];
"debconf" -> "debconf-utils"[color=springgreen];
"debconf" -> "debconf-tiny"[color=springgreen];
"debconf" -> "apt"[color=springgreen];
"debconf" -> "menu"[color=springgreen];
"debconf" -> "dialog"[color=springgreen];
"debconf" -> "whiptail"[color=springgreen];
"libmm12" -> "libc6";
"libnss-db" -> "libc6";
"libnss-db" -> "libdb3";
"libnss-db" -> "make";
"cdebconf" -> "libbogl0";
"cdebconf" -> "libc6";
"cdebconf" -> "libdebconf1";
"cdebconf" -> "slang1a-utf8";
"cdebconf" -> "debconf"[color=springgreen];
"make" -> "libc6";
"libpam0g" -> "libc6";
"libpam0g" -> "libpam-runtime";
"libpam0g" -> "libpam0"[color=springgreen];
"libpam0g" -> "libpam"[color=springgreen];
"mime-support" -> "a2ps"[color=springgreen];
"mime-support" -> "metamail"[color=springgreen];
"apache-common" -> "libc6";
"apache-common" -> "libdb2";
"apache-common" -> "libexpat1";
"apache-common" -> "perl5";
"apache-common" -> "perl";
"apache-common" -> "mime-support";
"apache-common" -> "apache"[color=springgreen];
"apache-common" -> "libapache-mod-roaming"[color=springgreen];
"apache-common" -> "libapache-mod-auth-sys"[color=springgreen];
"apache-common" -> "libapache-mod-put"[color=springgreen];
"xbase-clients" -> "cpp";
"xbase-clients" -> "libc6";
"xbase-clients" -> "libdps1";
"xbase-clients" -> "libfreetype6";
"xbase-clients" -> "libncurses5";
"xbase-clients" -> "libxaw7";
"xbase-clients" -> "xlibmesa3-gl";
"xbase-clients" -> "libgl1";
"xbase-clients" -> "xlibmesa3-glu";
"xbase-clients" -> "libgl1";
"xbase-clients" -> "xlibs";
"xbase-clients" -> "xlibs";
"xbase-clients" -> "xbase"[color=springgreen];
"xbase-clients" -> "xserver-common"[color=springgreen];
"xbase-clients" -> "xmodmap"[color=springgreen];
"xbase-clients" -> "xaw-wrappers"[color=springgreen];
"xbase-clients" -> "xfonts-100dpi"[color=springgreen];
"xbase-clients" -> "xfonts-75dpi"[color=springgreen];
"xbase-clients" -> "xfonts-base"[color=springgreen];
"xbase-clients" -> "xfonts-cyrillic"[color=springgreen];
"xbase-clients" -> "xfonts-scalable"[color=springgreen];
"xbase-clients" -> "xfnt100"[color=springgreen];
"xbase-clients" -> "xfnt75"[color=springgreen];
"xbase-clients" -> "xfntbase"[color=springgreen];
"xbase-clients" -> "xfntcyr"[color=springgreen];
"xbase-clients" -> "xfntscl"[color=springgreen];
"xbase-clients" -> "xdm"[color=springgreen];
"xbase-clients" -> "xsm"[color=springgreen];
"xbase-clients" -> "xcontrib"[color=springgreen];
"xbase-clients" -> "xpm4g-dev"[color=springgreen];
"xbase-clients" -> "xpm-bin"[color=springgreen];
"libbz2-1.0" -> "libc6";
"perl" -> "perl-base";
"perl" -> "perl-modules";
"perl" -> "libc6";
"perl" -> "libdb4.0";
"perl" -> "libgdbmg1";
"perl" -> "perl-5.004"[color=springgreen];
"perl" -> "perl-5.005"[color=springgreen];
"perl" -> "perl-5.6"[color=springgreen];
"perl" -> "perl-doc"[color=springgreen];
"perl" -> "libdigest-md5-perl"[color=springgreen];
"perl" -> "libmime-base64-perl"[color=springgreen];
"perl" -> "libtime-hires-perl"[color=springgreen];
"libpam-runtime" -> "libpam0g-util"[color=springgreen];
"libpam-runtime" -> "libpam0g"[color=springgreen];
"libdebconf1" -> "libc6";
"perl-base" -> "libc6"[color=blue];
"perl-base" -> "perl-5.004-base"[color=springgreen];
"perl-base" -> "perl-5.005-base"[color=springgreen];
"perl-base" -> "perl-5.6-base"[color=springgreen];
"perl-base" -> "data-dumper"[color=springgreen];
"perl-base" -> "autoconf2.13"[color=springgreen];
"slang1a-utf8" -> "libc6";
"slang1a-utf8" -> "slang1-utf8"[color=springgreen];
"libdps1" -> "libc6";
"libxaw7" -> "libc6";
"libxaw7" -> "xlibs";
"cpp" -> "cpp-3.2";
"cpp" -> "cpp-doc"[color=springgreen];
"libwine" -> "debconf";
"libwine" -> "libc6";
"libwine" -> "libjpeg62";
"libwine" -> "libncurses5";
"libwine" -> "xlibmesa3";
"libwine" -> "libgl1";
"libwine" -> "xlibs";
"libwine" -> "libfreetype6";
"libwine" -> "libwine0.0.971116"[color=springgreen];
"xlibmesa3" -> "xlibmesa3-gl";
"xlibmesa3" -> "xlibmesa3-glu";
"xlibmesa3-glu" -> "libc6";
"xlibmesa3-glu" -> "libgcc1";
"xlibmesa3-glu" -> "libstdc++5";
"xlibmesa3-glu" -> "libglu1"[color=springgreen];
"libdb3" -> "libc6";
"libdb3" -> "libdb2"[color=springgreen];
"libgdbmg1" -> "libc6";
"libgdbmg1" -> "libgdbm1"[color=springgreen];
"perl-modules" -> "perl";
"perl-modules" -> "libpod-parser-perl"[color=springgreen];
"perl-modules" -> "libansicolor-perl"[color=springgreen];
"perl-modules" -> "libfile-temp-perl"[color=springgreen];
"perl-modules" -> "libnet-perl"[color=springgreen];
"perl-modules" -> "libstorable-perl"[color=springgreen];
"perl-modules" -> "libattribute-handlers-perl"[color=springgreen];
"perl-modules" -> "libcgi-pm-perl"[color=springgreen];
"perl-modules" -> "libi18n-langtags-perl"[color=springgreen];
"perl-modules" -> "liblocale-maketext-perl"[color=springgreen];
"perl-modules" -> "libmath-bigint-perl"[color=springgreen];
"perl-modules" -> "libnet-ping-perl"[color=springgreen];
"perl-modules" -> "libtest-harness-perl"[color=springgreen];
"perl-modules" -> "libtest-simple-perl"[color=springgreen];
"libnet-ping-perl" -> "perl";
"libjpeg62" -> "libc6";
"libjpeg62" -> "libjpeg6b"[color=springgreen];
"libbogl0" -> "libc6";
"libnet-perl" -> "perl";
"libnet-perl" -> "debconf";
"libmime-base64-perl" -> "perl";
"libmime-base64-perl" -> "perlapi-5.8.0";
"libmime-base64-perl" -> "libc6";
"libfreetype6" -> "libc6";
"libfreetype6" -> "zlib1g";
"libfreetype6" -> "freetype"[color=springgreen];
"xlibs" -> "xfree86-common";
"xlibs" -> "libc6";
"xlibs" -> "libfreetype6";
"xlibs" -> "xlib"[color=springgreen];
"xlibs" -> "xlib6"[color=springgreen];
"xlibs" -> "xlib6g"[color=springgreen];
"xlibs" -> "xlib6g-dev"[color=springgreen];
"xlibs" -> "xbase-clients"[color=springgreen];
"xlibs" -> "xcontrib"[color=springgreen];
"xlibs" -> "xsm"[color=springgreen];
"xlibs" -> "xpm4g"[color=springgreen];
"xlibs" -> "fvwm-common"[color=springgreen];
"xlibs" -> "qcad"[color=springgreen];
"xlibs" -> "xbase-clients"[color=springgreen];
"xfree86-common" -> "debconf";
"xfree86-common" -> "debianutils";
"xfree86-common" -> "xbase"[color=springgreen];
"xfree86-common" -> "task-x-window-system-core"[color=springgreen];
"xfree86-common" -> "task-x-window-system"[color=springgreen];
"libdb4.0" -> "libc6";
"libdb4.0" -> "libdb2"[color=springgreen];
"cpp-3.2" -> "gcc-3.2-base";
"cpp-3.2" -> "gcc-3.2-base";
"cpp-3.2" -> "libc6";
"xlibmesa3-gl" -> "libc6";
"xlibmesa3-gl" -> "xlibs";
"xlibmesa3-gl" -> "libgl1"[color=springgreen];
"perl-doc" -> "perl";
"perl-doc" -> "perl-5.004-doc"[color=springgreen];
"perl-doc" -> "perl-5.005-doc"[color=springgreen];
"perl-doc" -> "perl-5.6-doc"[color=springgreen];
"libdigest-md5-perl" -> "perl";
"libdigest-md5-perl" -> "perlapi-5.6.0";
"libdigest-md5-perl" -> "libc6";
"libdigest-md5-perl" -> "libmd5-perl"[color=springgreen];
"libmath-bigint-perl" -> "perl";
"libstdc++5" -> "gcc-3.2-base";
"libstdc++5" -> "libc6";
"libstdc++5" -> "libgcc1";
"libcgi-pm-perl" -> "perl";
"libcgi-pm-perl" -> "libcgi-fast-perl"[color=springgreen];
"libcgi-pm-perl" -> "libcgi-perl"[color=springgreen];
"libcgi-pm-perl" -> "perl-5.005-doc"[color=springgreen];
"libncurses5" -> "libc6";
"libtest-harness-perl" -> "perl";
"libtime-hires-perl" -> "perl";
"libtime-hires-perl" -> "perlapi-5.6.0";
"libtime-hires-perl" -> "libc6";
"liblocale-maketext-perl" -> "perl";
"liblocale-maketext-perl" -> "libi18n-langtags-perl";
"libi18n-langtags-perl" -> "perl";
"libgcc1" -> "libc6";
"libtest-simple-perl" -> "perl";
"libtest-simple-perl" -> "libtest-harness-perl";
"libattribute-handlers-perl" -> "perl";
"libstorable-perl" -> "perlapi-5.6.1";
"libstorable-perl" -> "perl";
"libcgi-fast-perl" -> "perl";
"libcgi-fast-perl" -> "libfcgi-perl";
"debianutils" -> "libc6"[color=blue];
"debianutils" -> "debian-utils"[color=springgreen];
"libfcgi-perl" -> "libc6";
"libfcgi-perl" -> "perlapi-5.8.0";
"libfcgi-perl" -> "perl";
"file-rc" [color=orange,shape=box];
"zlib-udeb" [shape=hexagon];
"xfntscl" [shape=triangle];
"timezones" [shape=hexagon];
"libmath-bigint-perl" [shape=diamond];
"perlapi-5.6.0" [shape=triangle];
"perlapi-5.6.1" [shape=triangle];
"libpam0g" [shape=box];
"menu" [color=orange,shape=box];
"libpthread0" [shape=hexagon];
"libstdc++5" [shape=box];
"libcgi-pm-perl" [shape=diamond];
"perlapi-5.8.0" [shape=triangle];
"libncurses5" [shape=box];
"iproute" [shape=box];
"perl5" [shape=triangle];
"xfnt100" [shape=triangle];
"libdb1-compat" [shape=box];
"libmd5-perl" [color=orange,shape=box];
"lib-bdb2" [shape=hexagon];
"freetype" [shape=hexagon];
"xfonts-scalable" [color=orange,shape=box];
"xfntbase" [shape=triangle];
"mime-support" [shape=box];
"perl-5.004-base" [color=orange,shape=box];
"xbase" [shape=hexagon];
"libtest-harness-perl" [shape=diamond];
"perl-5.004" [color=orange,shape=box];
"perl-5.005" [color=orange,shape=box];
"whiptail" [color=orange,shape=box];
"libtime-hires-perl" [shape=diamond];
"apache-common" [shape=box];
"libglib1.2" [color=orange,shape=box];
"perl-5.6" [color=orange,shape=box];
"xbase-clients" [shape=box];
"libwine0.0.971116" [shape=hexagon];
"debian-utils" [shape=hexagon];
"libbz2-1.0" [shape=box];
"qcad" [color=orange,shape=box];
"xpm-bin" [shape=triangle];
"perl" [shape=box];
"autoconf2.13" [color=orange,shape=box];
"php4" [shape=box];
"libapache-mod-put" [shape=triangle];
"libpam-runtime" [shape=box];
"libcgi-perl" [color=orange,shape=box];
"perl-5.6-doc" [color=orange,shape=box];
"libdebconf1" [shape=box];
"xserver-common" [color=orange,shape=box];
"libwcsmbs" [shape=hexagon];
"apache" [color=orange,shape=box];
"strace" [color=orange,shape=box];
"perl-base" [shape=box];
"libpcre3" [shape=box];
"liblocale-maketext-perl" [shape=diamond];
"libpam0g-util" [shape=hexagon];
"zlib1" [color=orange,shape=box];
"debconf-tiny" [shape=triangle];
"debconf-utils" [color=orange,shape=box];
"gconv-modules" [shape=hexagon];
"libi18n-langtags-perl" [shape=diamond];
"libexpat1" [shape=box];
"gcc-3.2-base" [shape=box];
"xlib6g-dev" [color=orange,shape=box];
"slang1a-utf8" [shape=box];
"xfnt75" [shape=triangle];
"xfonts-75dpi" [color=orange,shape=box];
"libfile-temp-perl" [shape=triangle];
"coreutils" [shape=box];
"libgcc1" [shape=box];
"perl-5.004-doc" [color=orange,shape=box];
"libdps1" [shape=box];
"libtest-simple-perl" [shape=diamond];
"apt" [color=orange,shape=box];
"libc0.2" [shape=hexagon];
"libc0.3" [shape=hexagon];
"libxaw7" [shape=box];
"cpp" [shape=box];
"libgdbm1" [shape=hexagon];
"xfonts-base" [color=orange,shape=box];
"slang1-utf8" [shape=hexagon];
"stat" [shape=hexagon];
"libwine" [shape=box];
"libattribute-handlers-perl" [shape=diamond];
"metamail" [color=orange,shape=box];
"libc6.1" [shape=hexagon];
"xlibmesa3" [shape=box];
"xlibmesa3-glu" [shape=box];
"libstorable-perl" [shape=diamond];
"libtricks" [shape=hexagon];
"cpp-doc" [shape=hexagon];
"perl-5.005-base" [color=orange,shape=box];
"libcgi-fast-perl" [shape=box];
"libglu1" [shape=triangle];
"task-x-window-system" [shape=hexagon];
"xpm4g-dev" [shape=hexagon];
"libdb2" [shape=box];
"libdb3" [shape=box];
"libapache-mod-auth-sys" [shape=triangle];
"libpod-parser-perl" [shape=triangle];
"debianutils" [shape=box];
"wine" [shape=box];
"php4-sablot" [shape=hexagon];
"libgl1" [shape=triangle];
"libgdbmg1" [shape=box];
"xcontrib" [shape=triangle];
"zlib1g" [shape=box];
"xfonts-100dpi" [color=orange,shape=box];
"libansicolor-perl" [shape=triangle];
"netkit-rpc" [shape=hexagon];
"a2ps" [color=orange,shape=box];
"perl-modules" [shape=box];
"libnet-ping-perl" [shape=diamond];
"xmodmap" [shape=triangle];
"xdm" [color=orange,shape=box];
"xlib6g" [color=orange,shape=box];
"task-x-window-system-core" [shape=hexagon];
"libjpeg62" [shape=box];
"libbogl0" [shape=box];
"xlib6" [color=orange,shape=box];
"libfcgi-perl" [shape=box];
"libnet-perl" [shape=diamond];
"xlib" [shape=hexagon];
"libmime-base64-perl" [shape=diamond];
"libc6-bin" [shape=hexagon];
"libjpeg6b" [shape=triangle];
"libfreetype6" [shape=box];
"xsm" [shape=triangle];
"perl-5.005-doc" [color=orange,shape=box];
"xlibs" [shape=box];
"fvwm-common" [shape=hexagon];
"xfree86-common" [shape=box];
"libc6-doc" [shape=hexagon];
"dialog" [color=orange,shape=box];
"libdb4.0" [shape=box];
"libpam" [shape=hexagon];
"libapache-mod-roaming" [shape=triangle];
"debconf" [shape=box];
"data-dumper" [shape=triangle];
"libmm12" [shape=box];
"cpp-3.2" [shape=box];
"perl-5.6-base" [color=orange,shape=box];
"xaw-wrappers" [shape=hexagon];
"libnss-db" [shape=box];
"xlibmesa3-gl" [shape=box];
"cdebconf" [shape=box];
"xfntcyr" [shape=triangle];
"binfmt-support" [color=orange,shape=box];
"libc5" [color=orange,shape=box];
"libc6" [shape=box];
"perl-doc" [shape=box];
"xpm4g" [shape=hexagon];
"xfonts-cyrillic" [color=orange,shape=box];
"make" [shape=box];
"timezone" [shape=hexagon];
"libpam0" [shape=hexagon];
"libdigest-md5-perl" [shape=diamond];
}

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2010-02-10)

432.   Who are the Steve Police?   [jake/2006-05-21]
424.   Where do you get StrickPants?   [strick/2007-06-30]
403.   What is warviewing / warspying?   [jake/2004-01-28]
401.   What is the Fly Over Zone?   [jake/2004-01-28]
332.   What is the best hostel to stay at while in Amsterdam?   [jake/2002-10-25]
277.   What does K-Rad mean? is there a modern alternative to k-rad?   [mennonite/2001-10-08]
232.   Where can i find a stamp sized ethernet web server for (barely)less than $100?   [sidd/2001-05-30]
207.   how can i access a virtual console greater than 12 in linux?   [jesse/2001-04-03]
204.   Now that Mir's gone, where can I find images and information about the station and its reentry?   [rupe/2001-03-22]
199.   Where can I find pictures of cool PC cases?   [rupe/2001-03-13]
162.   What Internet drafts are in the RFC queue currently?   [rupe/2001-01-09]
152.   Why is it that Slackware roolz all other Linux distributions?   [dice/2000-12-10] ( jake/2003-09-22 )
137.   where can i find docs for radioshack scanners?   [jesse/2000-10-20]
112.   Where can I find information on older SGI systems?   [rupe/2000-07-09]
92.   How many characters wide is the display on a Nokia 5190?   [rupe/2000-05-10]
55.   How can i find out what other websites have links to my website?   [jamison/2000-02-11]
53.   Why is strick's favorite composer Dennis Báthory-Kitsz?   [strick/2001-05-13]
51.   I'm playing with dialpad.com -- What's the USGS earthquake info phone #?   [strick/2000-02-06]
34.   What are some good World Wide Web facts I can impress my friends with?   [simon/2000-01-28]
13.   What internet security sites should I read?   [strick/2000-01-17]