.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "ELFDEPS" "1" "2026\-10\-04" "RPM 6.1.0" .PP .SH NAME \fBelfdeps\fR \- Dependency generator for ELF binaries .PP .SH SYNOPSIS \fBelfdeps\fR [options] .PP \fBelfdeps\fR [options] [\fIFILE\fR] .\&.\&.\& .PP .SH DESCRIPTION \fBelfdeps\fR is a \fIdependency generator\fR 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.\& .PP \fBelfdeps\fR encodes information stored in ELF files into a format suitable for use in RPM dependencies.\& The main interest areas are \fBDT_SONAME\fR, \fBDT_NEEDED\fR fields of the \fBSHT_DYNAMIC\fR section, and symbol versioning information in the \fBSHT_GNU_verdef\fR and \fBSHT_GNU_verneed\fR sections.\& .PP \fBelfdeps\fR is not normally invoked directly, but doing so can be useful for troubleshooting dependency generation and developing new dependency generators.\& The installation directory of \fBelfdeps\fR can be determined with \fBrpm \-E "%{_rpmconfigdir}"\fR.\& .PP This man page describes the options specific to this generator, see \fBrpm\-dependency\-generators\fR(7) for information about the overall mechanism.\& .PP .SH OPERATIONS \fB\-P\fR, \fB\-\-provides\fR, .RS 4 Print the provides dependencies.\& .PP .RE \fB\-R\fR, \fB\-\-requires\fR .RS 4 Print the requires dependencies.\& .PP .RE .SH ARGUMENTS \fIFILE\fR .RS 4 An ELF file.\& Other file types are silently ignored.\& .PP .RE .SH OPTIONS \fB\-\-no\-fake\-soname\fR .RS 4 Do not emit a fake soname for DSOs that don'\&t set \fBDT_SONAME\fR.\& By default, \fBelfdeps\fR generates a soname from the filename for DSOs that do not have one.\& Only effective when printing provides dependencies.\& .PP .RE \fB\-\-no\-filter\-soname\fR .RS 4 Do not filter sonames.\& By default, \fBelfdeps\fR does some sanity checking to filter out redundant and/or invalid soname entries.\& Only effective when printing provides dependencies.\& .PP .RE \fB\-m\fR, \fB\-\-multifile\fR .RS 4 Use \fBmultifile\fR protocol for output.\& See \fBrpm\-dependency\-generators\fR(7).\& .PP .RE \fB\-\-require\-interp\fR .RS 4 Emit a requires dependency for the ELF interpreter (\fBPT_INTERP\fR), if there is one.\& Only effective when printing requires dependencies.\& .PP .RE \fB\-\-soname\-only\fR .RS 4 Emit only the soname (\fBDT_SONAME\fR) of a DSO, omitting any symbol versioning information.\& Only effective when printing provides dependencies.\& .PP .RE .SH OUTPUT See \fBProtocols\fR in \fBrpm\-dependency\-generators\fR(7).\& By default, \fBsinglefile\fR protocol is used, but the \fBmultifile\fR protocol can be enabled with the \fB\-\-multifile\fR option.\& .PP .SH EXIT STATUS On success, 0 is returned, a non\-zero failure code otherwise.\& .PP .SH EXAMPLES \fBelfdeps \-\-requires /bin/ls\fR .RS 4 Print ELF\-level requires dependencies of the \fI/bin/ls\fR executable.\& .PP .RE \fBfind mylib\-1.\&0\-build/BUILDROOT \-\-name "*.\&so*" | elfdeps \-P \-\-multifile\fR .RS 4 Print ELF\-level provides dependencies of all shared libraries inside the \fImylib\-1.\&0\-build/BUILDROOT\fR directory, using the \fBmultifile\fR generator protocol.\& .PP .RE .SH SEE ALSO \fBrpmbuild\fR(1) \fBrpm\-dependency\-generators\fR(7) \fBelf\fR(5) \fBreadelf\fR(1) .PP \fBhttp://www.\&rpm.\&org/\fR