<br /> Graphical Display of Package Dependencies – Debian Planet

Welcome to Debian Planet

News for Debian. Stuff that *really* matters

Sponsorship

DP is sponsored by Xinit Systems.

Domains paid for and hosted by uklinux.net.

Buy your Debian merchandise at DebianShop.com.

Debian
These are important Debian sites one should not be without!

  • Official Debian site
  • Package search
  • Mailing list archives
  • Bug reports
  • Debian on CD
  • Debian Weekly News — excellent news source!
  • Unofficial APT sources
    (apt-get.org)

  • Developers’ Corner
  • Community
    Need help? You’re not alone on this planet.

  • Planet Debian
  • debianHELP
    (User support site)

  • Debian Administration
    (SysAdmin resources)

  • Debian International
  • DebianForum.de
    (Deutsch)

  • DebianForum.dk
    (Dansk)

  • EsDebian
    (Español)

  • DebianWorld
    (Français)

  • Debian-Fr
    (Français)

  • MaximumDebian
    (Italiano)

  • DebianItalia
    (Italiano)
  • DebianUsers
    (한국어)

  • Debian-BR
    (Português)

  • DebianHOWTO
    (Deutsch)

  • Russian Debian (Русский)
  • Debian-JP
    (日本語)
  • Debian Suisse
    (Suisse)
  • Contribute
    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you’ve written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    General feedback should be sent to staff@debianplanet.org

    IRC
    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.oftc.net.

    Many of the Debian Planet staff live there so pop by and say hello.

    Debian Planet also has its own channel on the same network called #debianplanet.

    Donate
    Support Debian through Bytemark Hosting. At least £7 will be given for each new account

    Syndicate
    XML

    Graphical Display of Package Dependencies
    Submitted by Anonymous on Friday, June 14, 2002 – 17:29
    DebianJust curious if anyone knows of a utility that can create a graph that illustrates the dependencies of all packages installed on a particular Debian system.

    There are a few packages out there dedicated to constructing pretty graphs. It would be great if someone could apply this to the debian package database.

    Rob: A task for the eager coder ready to be unleashed from within you!

    Category: Q & A

    Control panel

    Comment viewing options:



    Select your prefered way to display the comments and click ‘Update settings’ to activate your changes.

    Subject: Re: Graphical Display of Package Dependencies
    Author: clacke
    Date: Tuesday, 2002/06/18 – 13:58
    Credits to you guys coming up with the details..
    This will do exactly what the poster wants, it graphs the dependencies from installed-packages-only to installed-packages-only:

    apt-cache dotty $(dpkg –get-selections | grep -v deinstall | awk ‘{print $1}’) |grep -F — “$(echo -e =;echo {;echo };dpkg –get-selections | grep -v deinstall | awk ‘{print “-> “” $1 “””}’)”|dot -Tps >depgraph.ps

    epstopdf depgraph.pdf

    [ Please login, or register ]

     

    Subject: Re: Graphical Display of Package Dependencies
    Author: clacke
    Date: Tuesday, 2002/06/18 – 14:20
    Seems the "echo =;" part was a bit too loose. It would include all shapes of uninstalled packages and all green lines to uninstalled packages. This is release candidate 2 😉 :

    apt-cache dotty $(dpkg –get-selections | grep -v deinstall | awk ‘{print $1}’) |grep -F — "$(echo concentrate=;echo size=;echo {;echo };dpkg –get-selections | grep -v deinstall | awk ‘{print "-> "" $1 ""n"" $1 "" [shape="}’)"|dot -Tps >depgraph.ps

    [ Please login, or register ]

     

    Subject: Re: Graphical Display of Package Dependencies
    Author: clacke
    Date: Tuesday, 2002/06/18 – 14:00
    <i know, preview is fantastic> epstopdf depgraph.ps of course, but you probably realized that.. </i>
    [ Please login, or register ]

    Subject: Re: Graphical Display of Package Dependencies
    Author: Mandus
    Date: Saturday, 2002/06/15 – 16:11
    The apt-cache dotty thing can be used like this:

    apt-cache dotty | dot -Tps

    This makes a graph for the specified packages. This can even be extended like this:

    apt-cache dotty $(dpkg –get-selections | grep -v deinstall | awk ‘{print $1}’) | dot -Tps > packgraph.ps

    This can take some time to go thorugh, though…

    [ Please login, or register ]

    Subject: Re: Graphical Display of Package Dependencies
    Author: Anonymous
    Date: Saturday, 2002/06/15 – 14:14
    Rob, dude, what’s with the grammar? Specifically, have you the brainworms?!?

    Apologies to Invader Zim.

    [ Please login, or register ]

    Subject: Re: Graphical Display of Package Dependencies
    Author: caf
    Date: Saturday, 2002/06/15 – 05:42
    Both the replies above seem to be about graphing the dependencies in the whole of Debian – wasn’t the original poster wanting a graph of just the packages installed on his/her system?
    [ Please login, or register ]

    Subject: Re: Graphical Display of Package Dependencies
    Author: coleSLAW
    Date: Friday, 2002/06/14 – 18:39
    Try: apt-cache dotty | dot -Tps > packages.gz Of course, you’ll need the non-free graphviz package. This will take a while to do. You may want to constrain your apt-cache query.
    [ Please login, or register ]

     

    Subject: Re: Graphical Display of Package Dependencies
    Author: joib
    Date: Sunday, 2002/06/16 – 17:13
    I think there is some bug which causes dot to fail. The apt-cache dotty output is only 1.6M in size (for woody). I killed dot after it had ran for about 2 hours on my duron 800. Creating a picture of the dependency tree can’t take _that_ long unless dot simply fails or it uses some seriusly borked algorithm.. Not to mention the guy above who has had it running for 24h on a 1600mhz athlon…
    [ Please login, or register ]

     

    Subject: Re: Graphical Display of Package Dependencies
    Author: greenfinch
    Date: Sunday, 2002/06/16 – 16:54
    Be warned, he’s not wrong about it taking a while. I’ve had it running for 24 hours now on an athlon 1600. Until a little while ago it was using ~210 meg, now it’s jumped to more like 500. I’m hoping that means it’s started plotting the postscript.
    I’ll make the results available if it ever completes and anyone’s interested. (It’ll be based on sid)
    [ Please login, or register ]

     

    Subject: Re: Graphical Display of Package Dependencies
    Author: greenfinch
    Date: Tuesday, 2002/06/18 – 01:19
    Well, I gave up after running out of ram and it started thrashing. I’ve ordered some another half a gig and I’ll try again when it arrives (there goes this week’s rent).
    I can’t claim to be at all familiar with the behaviour of dot but I’ve come across graphing algorithms enough before to not be too surprised if it does take a long time. Don’t forget there are up to 13510 nodes in the graph with a total of 51411 dependencies.
    I’ll post again if it completes.
    [ Please login, or register ]

    Subject: Re: Graphical Display of Package Dependencies
    Author: robot101
    Date: Friday, 2002/06/14 – 18:18
    I think aj’s had a go at this, at http://people.debian.org/~ajt/deps_small.gif [warning, 1.9Mb gif, make sure you have loads of RAM/swap or open it in GIMP with scratch space]. There doesn’t seem to be any scripts, postscript, etc, so he may have got it from somewhere/someone else. aj?
    [ Please login, or register ]

    Search articles



    Category
    ·News (344)
    ·Features (5)
    ·Site News (14)
    ·HOWTOs (62)
    ·Tips (17)
    ·Opinion (26)
    ·Q & A (27)
    ·Sponsorship (1)
    ·Press Releases (2)

    Log in
    Username:

    Password:

    Remember me

    » Register
    » New password

    Debian Security Announcements
    DSA-719 prozilla
    DSA-718 ethereal
    DSA-717 lsh-utils
    DSA-716 gaim
    DSA-715 cvs
    DSA-714 kdelibs
    DSA-713 junkbuster
    DSA-661 f2c
    DSA-712 geneweb
    DSA-711 info2www

    Planet Debian
    John Goerzen: Darcs use case
    Jurij Smakov: torrus_0.99.0.20040410-1_i386.changes ACCEPTED
    Todd Troxell
    Edd Dumbill: Firefox ScrapBook extension
    John Goerzen: Trying out XFS
    Jacobo Tarrío Barreiro: IICSA shirt
    Amaya Rodrigo: 3l1t3
    Dan Weber: Dan vs. Pepsid AC
    Adeodato Simó: Demonstrations against software patents in Spain
    Lars Wirzenius: Debian: Packaging tutorial

    Debian Administration
    Speeding up recompilation with ccache
    Testing network connectivity
    Automounting card readers and USB keys using autofs
    Card Readers and USB keys using udev
    Building Debian CD-ROMS Part 1 – dfsbuild
    Printing PDF to your samba home share
    Protecting your online privacy with tor
    Turning on computers remotely
    Finding the dimensions of the X11 display
    Application level firewalling

    Latest poll: Which release scheme should Debian follow?
    Continue this way (release when ready)
    48%
     
    Give up on releasing
    8%
       
    Split the release up
    8%
       
    Speed the release up
    32%
       
    Crank the workload up (see DebianWiki ReleaseProposals for details on these)
    4%
       

    Total votes: 372
    0 comments · older polls

    home · archives · news feeds · about · polls · search · sections · user account

    Powered by the amazing Drupal

    Debian Planet is not officially related to the Debian Project.
    Debian and the Debian logo are trademarks of Software in the Public Interest, Inc.