Wiki

Clone wiki

sbbdep / the search

Search options


The [QUERY] option

If this option is omitted, sbbdep will only run the synchronization (if it is not disabled via --nosync). sbbdep takes exact one QUERY value, and this is what sbbdep will search for.
The query value can be

  • a file name
    If the given argument is a package file from /var/adm/packages or a dynamic linked file sbdep will run its query on this file.
    If the given argument is some other regular file sbbdep will perform a lookup in all installed packages and report where the file is from.
  • a folder name
    In this case sbbdep will interpret the given folder as the destination as a $DESTDIR of a
    make install DESTDIR=/some/where
    command.
    In this case sbbdep checks for dynamic linked files in the usual directories relative to DESTDIR.
    It will than do a dependency search for the required libraries that do not exist in the usual lookup directories relative to DESTDIR. All dependencies that are not within the DESTDIR will be reported.
  • just some string
    If the given argument not a file or a folder, sbbdep will look up the string in filenames of the installed packages and report them.


Have a look at the examples to see how it works.


default serach and search with --ldd option

sbbdep uses the ELF information found in dynamic linked files and searches for the sonames in the the usual search paths of the file system. sbbdep will report all found files or the packages the are in, combined with an 'or' (|). Also, per default sbbdep reports direct dependencies, For a query on file A that needs file B and file B needs file C, sbbdep will only report a dependency to file B.

Using the --ldd option for a search sbbdep search like the ldd command for dependencies. This means in opposit to the default search only the actual used dependencies are reported and there is no information about optional possibilities. Also, the full dependency tree is reported, so for a query on file A that needs file B and file B needs file C, both file B and C will be reported.

The --ldd option makes only sense for dependency search and is useless for a whoneeds search.

sbbdep can also search for info about which other components need the given one.

This works mostly correct, however, through the nature of the multiple system configurations additional, non reported dependencies are possible in the same way as that a reported component may have an alternative to use and does not depend just on the questioned one.
The first case is rare, the second one can occur more often.
To see if a whoneeds query reports absolute and non alternative dependencies, the reported dependent packages can be cross checked with sbbdep if there is an alternative.

Have a look at the examples to see how it works.

<<Anchor(xdl)>>


Output format and report detail options

--xdl

xdl stands for 'explain dynamic linkage'.
With this option sbbdep reports the dependencies on a file based level.
Have a look at the examples to see how it works.

-s or --short

per default sbbdep prints the package names with version number. With this option only the package name will be reported and in some cases package names will be separated with a, instead of a new line.
Have a look at the examples to see how it works.


Back to the options overview

Updated