SBdocs - SlackBuilder Tutorials - ldeps

Last updated:

ldeps


Returns a list of recursive dependencies if any exists for a single package as an argument.

Examples of use

Get the USAGE message with either 'ldeps -h' or just 'ldeps' with no options.

--> ldeps -h
--------------------------------------------------------------------------------
ldeps [-options] [pkg-name]....

   -v  (verbose forward output.)
   -s  (for simple flat list) 
   -d  (for scripts to get a list of recursive deps.
        writes out to $CACHE/dep_install)
   -h  (to show this help message.)
   
  ie: ldeps -s  pkg-name

  A support tool for the SlackBuilder system.
--------------------------------------------------------------------------------
    

A forward verbose list...for human readable output.

--> ldeps -v Sbuilderbox
Sbuilderbox -- 5 => openbox slackerson-utils lxappearance-obconf obconf openbox-themes
slackerson-utils -- 1 => slackerson-profile
lxappearance-obconf -- 2 => openbox lxappearance
obconf -- 1 => openbox
openbox-themes -- 1 => openbox
    

A simple flat list in reverse order.... This is useful when building packages to preserve the dependency chain order of installation.

--> ldeps -s Sbuilderbox
openbox-themes
obconf
lxappearance
lxappearance-obconf
slackerson-profile
slackerson-utils
openbox
    

This options is meant to be the display in scripts ( ie: 'pkg-get' ) to show a dependency search in progress. The results of the search are written to $CACHE/dep_install which by default is /var/pkgcache/dep_install.

--> ldeps -d Sbuilderbox
Finding recursive dependencies for....Sbuilderbox
Done!
    

Comment in the Forum.

© 2015 - 2023  -   SlackBuilder  -   All Rights Reserved.

By: Lance Peterson -- Slackerson