sbbdep /

Filename Size Date modified Message
a4cmk [8e69147bece8]
44 B
40 B
47 B
221 B
4.7 KB
4.3 KB
2.6 KB
850 B
420 B
sbbdep (Slack Build Binary Dependencies)
Slackware Builds and Binaries Dependencies Walker,
sbbdep is a tool for Slackware and Slackware based distributions that traces 
binary runtime dependencies of dynamic linked files.

some simple usage example:

./sbbdep  --whoneeds  --xdl /usr/lib64/
/usr/lib64/ (

this shows us that is required by the package akonadi.

sbbdep works also in the other direction

./sbbdep --xdl --short /usr/lib64/
file /usr/lib64/ needs: found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /usr/lib64/ aaa_elflibs | gcc ) found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /usr/lib64/ cxxlibs | gcc-g++ )

this shows which packages requires. 

these queries can also be used for packages

./sbbdep  /var/adm/packages/boost-1.49.0-x86_64-3 
aaa_elflibs >= 14.0 | bzip2 >= 1.0.6
aaa_elflibs >= 14.0 | gcc >= 4.7.1_multilib
aaa_elflibs >= 14.0 | zlib >= 1.2.6
cxxlibs >= 6.0.17 | gcc-g++ >= 4.7.1_multilib
glibc >= 2.15_multilib | glibc-solibs >= 2.15_multilib
icu4c >= 49.1.2


./sbbdep --whoneeds /var/adm/packages/boost-1.49.0-x86_64-3 

the output format is a package list as slapt-get expects it for dependencies.
(the --short option would generate a list without version number)

passing the --xdl option would list the dependencies for each file of the package.
to keep the samples short this option is skiped here.

If the given argument is a file but not with binary dependencies, sbbdep will
search the package database and show found information.

./sbbdep  /etc/pine.conf 
not a file with binary dependencies: /etc/pine.conf
 try to find other information:
absolute match in /var/adm/packages/alpine-2.02-x86_64-1: /etc/pine.conf

Some more information:

 sbbdep takes a snap shoot of installed packages, extracts information about 
 binary runtime dependencies between files and stores these info in a sqlite3 database 
 which is kept in sync.

 the stored info can be used to query binary dependencies between 
 package/packages file/packages package/files file/files in two directions
  what needs files/package 
  who needs file/package

 through having a static storage sbbdep is very fast in querying these information.

 currently query for package/packages and file/packages in both directions are 

 For query/generate information sbbdep itself is not a must requirement, 
 the sqlite3 db can be used with other programming languages or sql query tool like 
 the sqlite3 cli or sqliteman.
 A description of the database can be found in README_db.txt.

 for additional information run ./sbbdep --help
building sbbdep:

sbbdep needs a4z and a4sqlt3 which are both available on bitbucket
an additional build dependency is boost

an easy way for downloading the source disribution including a4z and a4sqlt3 is 
getting the source bundle from is this meta repository includes the 
required subrepositories

since sbbdep uses C++11 Slackware 14 or newer ist required.

runtime dependencies from sbbdep can be viewed with sbbdep itself: 

./sbbdep --short --xdl sbbdep 

file /home/slk140/a4work/sbbdep_slk/build/bin/sbbdep needs: found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /usr/lib64/ aaa_elflibs | gcc ) found in:
    /usr/lib64/ gcc ) found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /lib64/ glibc | glibc-solibs ) found in:
    /usr/lib64/ cxxlibs | gcc-g++ )

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.