REVDEP(1) General Commands Manual REVDEP(1)

revdepcheck for missing or wrong libraries of installed packages

revdep [-Vehptv] [-L ldsoconffile] [-D pkgdbfile] [-R revdepdir] [-I pkgname[,...]] [pkgname ...]

revdep checks libraries and binaries of installed packages for missing shared library dependencies. It is useful when an upgraded package breaks other software packages that are dependent upon the upgraded package.

revdep uses elfutils' libelf(3) and the same algorithm that ld.so(8) uses.

The options are as follows:

ldsoconffile, --ldsoconf=ldsoconffile
Specify an alternate location for ld.so.conf file instead of the default /etc/ld.so.conf. That file contains a list of directories, one per line, in which to search for libraries.

: This option is ignored on non-glibc systems.

pkgdbfile, --pkgdb=pkgdbfile
Specify an alternate location for the package database file instead of the default /var/lib/pkg/db.
revdepdir, --revdepdir=revdepdir
Specify an alternate location for revdep package configuration directory instead of the default /etc/revdep.d.

See Additional Library Directories below and revdep.d(5) for more information.

pkgname[,...], --ignore=pkgname[,...]
Comma-separated list of packages to ignore.
, --erroneous
Include erroneous files in the output.
, --precise
Include precise file errors in the output.
, --trace
Show debug/trace.
, --verbose
Formatted listing.
, --version
Print version and exit.
, --help
Print help and exit.

Upon startup, revdep searches the /etc/revdep.d directory for files named after packages. These files contains additional library directories to search if a library dependency is not found in one of the many standard locations.

See revdep.d(5) for more information.

/etc/revdep.d/*
Default location for the revdep configuration files which contains additional library directories.

0
There are no missing libraries found, all is ok.
1
Failed to parse command-line arguments.
2
Failed to read package database.
3
Failed to read ld.so.conf.
4
Found at least one missing library.

Try this command to list broken packages:

revdep

Use this command to rebuild broken packages on your system:

pkgman update -fr $(revdep)

revdep.d(5)

Original Shell script was written by Johannes Winkelmann <jw@tks6.net> as part of “” package for CRUX.

The C++ rewrite was done by James Buren <ryuo@frugalware.org> with design contribution by Danny Rawlins <contact@romster.me>.

This implementation was re-worked for Zeppe-Lin by Alexandr Savca <alexandr.savca89@gmail.com>.

November 21, 2024 Zeppe-Lin