You are not logged in.

#1 2013-01-20 10:16:48

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

garchdeps - Show graphical dependencies of the archlinux packages

Hello,

i have begin a new project, this project actually show the tree of a package or show sorted packages who use most data.

The name of this project is garchdeps

The package is available in https://aur.archlinux.org/packages/garchdeps-git or https://github.com/badele/garchdeps

Sample result

Edit: the sample graph result (future next release)
8400141394_d27e423688_c.jpg
Big Format: http://www.flickr.com/photos/b_adele/84 … otostream/

>garchdeps.py

-----------------------------------------+---------+----------+----------+----------+-----------+------------+
Package                                  | T. Deps | M. depth | N usedby |  Size    | T. Size   |  % T. Size |
-----------------------------------------+---------+----------+----------+----------+-----------+------------+
microchip-mplabx-bin                     |      10 |        6 |        0 |   553 MB |     85 MB |            |
processing                               |      90 |       11 |        0 |   377 MB |    335 MB | ###        |
qt-doc                                   |     112 |       10 |        0 |   377 MB |    509 MB | ####       |
libreoffice-common                       |      88 |        8 |       10 |   236 MB |    462 MB | ####       |
eagle                                    |      65 |        8 |        0 |   203 MB |    240 MB | ##         |
ocaml                                    |       7 |        5 |        0 |   191 MB |     62 MB |            |
virtuoso                                 |      32 |       10 |        0 |   185 MB |    255 MB | ##         |
gutenprint                               |       3 |        2 |        0 |   170 MB |     47 MB |            |
boost                                    |      13 |        6 |        1 |   143 MB |    121 MB | #          |
mono                                     |      37 |        7 |        4 |   136 MB |    153 MB | #          |
blender                                  |     153 |       10 |        0 |   122 MB |    753 MB | #######    |
mongodb                                  |      13 |        6 |        0 |   113 MB |    121 MB | #          |
chromium                                 |     118 |        9 |        0 |   111 MB |    440 MB | ####       |
webmin                                   |      24 |        6 |        0 |   107 MB |    175 MB | #          |
libreoffice-sdk-doc                      |     106 |        9 |        0 |   104 MB |      1 GB | ########## |
emacs                                    |     138 |        9 |        0 |   102 MB |    514 MB | #####      |
google-chrome                            |     131 |        8 |        0 |   101 MB |    555 MB | #####      |
catalyst-utils                           |      89 |       10 |        2 |    94 MB |    240 MB | ##         |
android-sdk                              |     121 |       11 |        1 |    94 MB |    512 MB | ####       |
python                                   |      27 |        7 |       23 |    93 MB |    187 MB | #          |
>garchdeps.py -t python

|--python 
   |--expat 
      |--glibc 
         +--linux-api-headers 
         +--tzdata 
   |--bzip2 
      |--glibc 
   |--gdbm 
      |--glibc 
      |--sh(by bash) 
         |--readline 
            |--glibc 
            |--ncurses 
               |--glibc 
         |--glibc 
   |--openssl 
      |--perl 
         |--gdbm 
         |--db 
            |--gcc-libs(by gcc-libs-multilib) 
               |--glibc 
               |--lib32-gcc-libs 
                  +--lib32-glibc 
                  |--gcc-libs(by gcc-libs-multilib) 
            |--sh(by bash) 
         |--coreutils 
            |--glibc 
            |--pam 
               |--glibc 
               |--db 
               |--cracklib 
                  |--glibc 
                  |--zlib 
                     |--glibc 
               |--libtirpc 
                  |--libgssglue 
                     |--glibc 
               +--pambase 
            |--acl 
               |--attr 
                  |--glibc 
            |--gmp 
               |--gcc-libs(by gcc-libs-multilib) 
               |--sh(by bash) 
            |--libcap 
               |--glibc 
               |--attr 
         |--glibc 
         |--sh(by bash) 
   |--libffi 
      |--glibc 
   |--zlib 

Last edited by b_adele (2013-01-20 21:56:19)

Offline

#2 2013-01-20 10:19:07

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,357
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

Have you seen pactree - part of the pacman packge?

Offline

#3 2013-01-20 10:24:05

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

yes, but pactree, work for one package, in the next version, i would like make graphviz graph for all installed packages and also show packages who use most hdd disk

Offline

#4 2013-01-23 14:57:31

Spyhawk
Member
Registered: 2006-07-07
Posts: 485

Re: garchdeps - Show graphical dependencies of the archlinux packages

Check also pacgraph in [community].

Offline

#5 2013-01-23 16:36:28

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

Thanks @Spyhawk,

I don't know of this package, i will make similars graphs

Offline

#6 2013-01-27 22:16:02

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

Here a new preview screenshot of the gardeps (modification not allready pushed)

preview archdeps

Offline

#7 2013-01-28 23:04:54

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

The first version with graph support is available in the  AUR ( garchdeps-git ).

The previous graph is generated with this command garchdeps.py -f qt -g /tmp/graph.dot  ; tred /tmp/graph.dot | dot -Tpng  -o /tmp/graph.png

Thanks for your feedbacks

Offline

#8 2013-01-28 23:26:30

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: garchdeps - Show graphical dependencies of the archlinux packages

How are the sizes for each package blob/shape determined? I don't quite see a pattern to it.

Offline

#9 2013-01-29 07:32:49

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

Hello,

- Pink, the first most used packages(0-20) from the all installed packages
- Blue, the second most used packages(20-40) from the all installed packages
- Gray, the rest of packages

You can list most used packages with this command
garchdeps.py -s nusedby

-----------------------------------------+---------+----------+----------+----------+-----------+------------+
Package                                  | T. Deps | N. depth | N usedby |  Size    | T. Size   |  % T. Size |
-----------------------------------------+---------+----------+----------+----------+-----------+------------+
glibc                                    |       2 |        1 |      177 |    37 MB |      9 MB |            |
python2                                  |      28 |        7 |       66 |    69 MB |    188 MB | #          |
glib2                                    |       8 |        4 |       61 |    12 MB |     73 MB |            |
...
qt                                       |     111 |        9 |       32 |    90 MB |    418 MB | ####       |
dconf                                    |      26 |        7 |       31 | 952.0 KB |    140 MB | #          |
curl                                     |      29 |        8 |       27 |     1 MB |    191 MB | #          |

For all all blob/shape, the first size is the size of package, the second size is the size of all the children packages, for example you can compare the graph with the previous out ( qt line )

Offline

#10 2013-01-30 09:07:46

browntown
Member
From: Salem, OR USA
Registered: 2012-11-20
Posts: 63

Re: garchdeps - Show graphical dependencies of the archlinux packages

Very cool, might want to list tred and dot (or pydot) as optional dependencies in the aur if the graph  is to become a key feature.

Offline

#11 2013-02-18 12:16:01

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

A new version is available, the linked package feature , in the exemple if mplayer will be remove, all green packages can also removed, see bottom capture

8480760073_d8562bbd95_h.jpg

you can also see all packages remove if you remove main package

./garchdeps.py -o -s totalsize

libreoffice-common                       236 MB  sudo pacman -R libreoffice-common 
ocaml                                    191 MB  sudo pacman -R ocaml 
virtuoso                                 185 MB  sudo pacman -R virtuoso 
virtualbox                               180 MB  sudo pacman -R virtualbox libvncserver virtualbox-host-modules linux linux-firmware mkinitcpio mkinitcpio-busybox 
arduino                                  162 MB  sudo pacman -R arduino avr-libc avr-gcc avr-binutils 
mono                                     136 MB  sudo pacman -R mono 
mongodb                                  113 MB  sudo pacman -R mongodb 
chromium                                 111 MB  sudo pacman -R chromium 
emacs                                    109 MB  sudo pacman -R emacs libotf m17n-lib m17n-db 
google-chrome                            101 MB  sudo pacman -R google-chrome 
catalyst-utils                           94 MB   sudo pacman -R catalyst-utils 
python                                   93 MB   sudo pacman -R python 
inkscape                                 91 MB   sudo pacman -R inkscape gc gsl gtkspell 
qt                                       90 MB   sudo pacman -R qt 
jre                                      86 MB   sudo pacman -R jre 
avr-gcc                                  81 MB   sudo pacman -R avr-gcc 
mysql                                    79 MB   sudo pacman -R mysql 
gcc-multilib                             78 MB   sudo pacman -R gcc-multilib 
gimp                                     78 MB   sudo pacman -R gimp libwmf gsfonts gegl babl 
fritzing                                 74 MB   sudo pacman -R fritzing 
./garchdeps.py -s totalsize
-----------------------------------------+---------+---------+----------+----------+----------+----------+----------+----------+------------+
Package                                  | T. Deps | L. Deps | N. depth | N usedby |  P. Size |  L. Size |  T. Size |  D. Size |  % T. Size |
-----------------------------------------+---------+---------+----------+----------+----------+----------+----------+----------+------------+
libreoffice-common                       |      88 |       0 |        8 |        7 |   236 MB |     0 KB |   236 MB |   462 MB | ########## |
ocaml                                    |       7 |       0 |        5 |        0 |   191 MB |     0 KB |   191 MB |    62 MB | ########   |
virtuoso                                 |      32 |       0 |       10 |        0 |   185 MB |     0 KB |   185 MB |   255 MB | #######    |
virtualbox                               |      89 |       6 |        9 |        0 |    73 MB |   107 MB |   180 MB |   432 MB | #######    |
arduino                                  |      63 |       3 |       11 |        0 |    46 MB |   116 MB |   162 MB |   441 MB | ######     |
mono                                     |      37 |       0 |        7 |        2 |   136 MB |     0 KB |   136 MB |   153 MB | #####      |
mongodb                                  |      13 |       0 |        6 |        0 |   113 MB |     0 KB |   113 MB |   121 MB | ####       |
chromium                                 |     118 |       0 |        9 |        0 |   111 MB |     0 KB |   111 MB |   440 MB | ####       |
emacs                                    |     138 |       3 |        9 |        0 |   102 MB |     7 MB |   109 MB |   514 MB | ####       |
google-chrome                            |     131 |       0 |        8 |        0 |   101 MB |     0 KB |   101 MB |   555 MB | ####       |
catalyst-utils                           |      89 |       0 |       10 |        2 |    94 MB |     0 KB |    94 MB |   240 MB | ####       |
python                                   |      27 |       0 |        7 |       17 |    93 MB |     0 KB |    93 MB |   187 MB | ###        |
inkscape                                 |     129 |       3 |       10 |        0 |    81 MB |    10 MB |    91 MB |   558 MB | ###        |
qt                                       |     111 |       0 |        9 |       25 |    90 MB |     0 KB |    90 MB |   418 MB | ###        |
jre                                      |      52 |       0 |       10 |        0 |    86 MB |     0 KB |    86 MB |   207 MB | ###        |
avr-gcc                                  |      17 |       0 |        6 |        1 |    81 MB |     0 KB |    81 MB |   127 MB | ###        |
mysql                                    |      43 |       0 |        9 |        1 |    79 MB |     0 KB |    79 MB |   288 MB | ###        |
gcc-multilib                             |      17 |       0 |        7 |        0 |    78 MB |     0 KB |    78 MB |   135 MB | ###        |
gimp                                     |     154 |       4 |       11 |        0 |    69 MB |     9 MB |    78 MB |   662 MB | ###        |
fritzing                                 |     112 |       0 |       10 |        0 |    74 MB |     0 KB |    74 MB |   509 MB | ###        |

Main project page (in french) http://bruno.adele.im/projets/garchdeps/

Offline

#12 2013-03-02 23:11:53

b_adele
Member
From: Montpellier, France
Registered: 2012-02-03
Posts: 15
Website

Re: garchdeps - Show graphical dependencies of the archlinux packages

Hello,

The official website for garchdeps is now available on http://bruno.adele.im/projets/garchdeps-en

Offline

Board footer

Powered by FluxBB