You are not logged in.

#1 2010-03-25 18:55:52

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

[SOLVED] Most efficient way of getting package dependencies

I wrote a script ( http://bbs.archlinux.org/viewtopic.php?id=91452 ) to help cut down on package bloat and I just found a problem with detecting dependencies.

[shane@extensa-arch ~]$ pacman -Qi mint-fm2 
Name           : mint-fm2
Version        : 2.11-1
URL            : http://www.linuxmint.com/wiki/index.php/Mint-fm2
Licenses       : GPL  
Groups         : None
Provides       : None
Depends On     : fluxbox  bash  inotify-tools  python>=2.4  python<3  pygtk  glade  zenity  sed  pm-utils  
Optional Deps  : lxterminal
                 firefox
                 thunar
Required By    : None
Conflicts With : None
Replaces       : None
Installed Size : 440.00 K
Packager       : shane at archlinux dot us
Architecture   : x86_64
Build Date     : Fri 19 Mar 2010 03:42:45 PM EET
Install Date   : Fri 19 Mar 2010 03:42:47 PM EET
Install Reason : Explicitly installed
Install Script : Yes
Description    : The Linux Mint Fluxbox CE menu system

[shane@extensa-arch ~]$ pacman -Qi mint-fm2 | grep "Depends On" 
Depends On     : fluxbox  bash  inotify-tools  python>=2.4  python<3  pygtk

As you can see, when I grep for dependencies some dependencies get omitted. What am I doing wrong?... or is there a better way of getting dependencies in a script?

Thanks.

Last edited by drsjlazar (2010-03-25 20:03:42)

Offline

#2 2010-03-25 19:29:27

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: [SOLVED] Most efficient way of getting package dependencies

cat /var/lib/pacman/local/mint-fm2-2.11-1/depends

just a bit of sedding from there...

Offline

#3 2010-03-25 19:35:29

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

Re: [SOLVED] Most efficient way of getting package dependencies

Thank you. That should work faster.

Offline

Board footer

Powered by FluxBB