You are not logged in.

#1 2005-02-26 22:46:22

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

pacmanDeps - recursive package dependency viewer

Based on Pacman Dependency Tree I created pacmanDeps. If anyone is interested in the dependencies of his packages; now you can easily view it

pacmanDeps.png

Features:
Pass one or multiple packagenames to seeo, of pass nothing to see all packages installed
Detects dependency-loops (use `pacmanDeps>/dev/null` to see only dep-loops)
Has an internal cache to speedup the process of looking up dependencies
Uses some colors; easy to modify in the head of the script


ToDo:
Fix branch and leaves visual

Download: (updated - this is version 0.2)
http://archlinux.spider007.net/pacmanDeps/pacmanDeps.sh

Any feedback welcome smile

Offline

#2 2005-02-27 00:48:29

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: pacmanDeps - recursive package dependency viewer

nice work!

[damir@Asteraceae cvsARCH]$ ./deptree_spider.sh readline
readline
+---glibc
+---ncurses
+---glibc

funny output - it seems that glibc is listened 2ce ... but the second one is from ncurses

[damir@Asteraceae cvsARCH]$ ./deptree_spider.sh cups    
cups
+---libpng
+---glibc
+---zlib
    +---glibc
+---libtiff
+---gcc
    +---binutils
        +---glibc
    +---glibc
+---libjpeg
    +---glibc
+---zlib
    +---glibc
+---openssl
+---glibc
+---pam
+---db
    +---gcc
        +---binutils
            +---glibc
        +---glibc
    +---glibc
+---filesystem
    +---bash
        +---glibc
        +---readline
            +---glibc
            +---ncurses
                +---glibc
+---glibc

seems that this bug is not always reproducable

one more thing: please end your script with "exit 0" and name it with the extension .sh


The impossible missions are the only ones which succeed.

Offline

#3 2005-02-27 10:40:09

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: pacmanDeps - recursive package dependency viewer

I've been doing some work on pacmanDeps:

Major speed-improvements (more details below)
Fixed the bug mentioned by dp (regarding readline)
Added an existatus
Here some nice statistics (querying xorg):

Original pacdep script by skoal

real    0m1.431s
user    0m0.577s
sys     0m0.816s

pacmanDeps v0.1

real    0m1.015s
user    0m0.354s
sys     0m0.588s

pacmanDeps v0.2

real    0m0.519s
user    0m0.168s
sys     0m0.323s

Offline

#4 2005-02-27 13:02:29

pixel
Member
From: Living in the Server Room
Registered: 2005-02-21
Posts: 119

Re: pacmanDeps - recursive package dependency viewer

nice work! I will check it out...


Favorite systems: ArchLinux, OpenBSD
"Yes, I love UNIX"

Offline

Board footer

Powered by FluxBB