table of contents
| ELFDEPS(1) | General Commands Manual | ELFDEPS(1) |
NAME¶
elfdeps - Dependency generator for ELF binaries
SYNOPSIS¶
elfdeps <operation> [options]
elfdeps <operation> [options] [FILE] ...
DESCRIPTION¶
elfdeps is a dependency generator for ELF executables and dynamic shared object (DSO) files. The filenames can be received on the standard input (when used as a generator), or command line arguments for testing convenience.
elfdeps encodes information stored in ELF files into a format suitable for use in RPM dependencies. The main interest areas are DT_SONAME, DT_NEEDED fields of the SHT_DYNAMIC section, and symbol versioning information in the SHT_GNU_verdef and SHT_GNU_verneed sections.
elfdeps is not normally invoked directly, but doing so can be useful for troubleshooting dependency generation and developing new dependency generators. The installation directory of elfdeps can be determined with rpm -E "%{_rpmconfigdir}".
This man page describes the options specific to this generator, see rpm-dependency-generators(7) for information about the overall mechanism.
OPERATIONS¶
-P, --provides,
-R, --requires
ARGUMENTS¶
FILE
OPTIONS¶
--no-fake-soname
--no-filter-soname
-m, --multifile
--require-interp
--soname-only
OUTPUT¶
See Protocols in rpm-dependency-generators(7). By default, singlefile protocol is used, but the multifile protocol can be enabled with the --multifile option.
EXIT STATUS¶
On success, 0 is returned, a non-zero failure code otherwise.
EXAMPLES¶
elfdeps --requires /bin/ls
find mylib-1.0-build/BUILDROOT --name "*.so*" | elfdeps -P --multifile
SEE ALSO¶
| 2026-08-20 | RPM 6.1.0 |