man > deb-shlibs(5)

🏷️ NAME

deb-shlibs – Debian shared library information file

πŸš€ Quick Reference

Use CaseCommand / FileDescription
πŸ“„ Define library dependencies for a binary packagedebian/shlibsMap shared library SONAMEs to package dependencies
πŸ“„ Per-binary shlibs filedebian/binary-name.shlibsOverride or supplement the main shlibs file for a specific binary package
πŸ“¦ Package-level shlibs fileDEBIAN/shlibsShipped inside the binary package for consumer packages to use
πŸ“ File format[type:] library version dependenciesOne line per library; whitespace-delimited fields; dependencies extend to end of line
πŸ” Supported SONAME patternsname.so.version and name-version.soTypically lib‑prefixed name

πŸ“‹ SYNOPSIS

debian/shlibs, debian/binary-name.shlibs, DEBIAN/shlibs

πŸ“ DESCRIPTION

shlibs files map shared library names and versions (SONAMEs) to dependencies suitable for a package control file. There is one entry per line. Blank lines are not allowed. Lines beginning with a # character are considered commentary, and are ignored. All other lines must have the format:

[type:] library version dependencies

The library and version fields are whitespace-delimited, but the dependencies field extends to the end of the line. The type field is optional and normally not needed.

The dependencies field has the same syntax as the Depends field in a binary control file, see deb-control(5).

πŸ”€ SONAME FORMATS

The SONAME formats supported are:

where name is usually prefixed by lib.

πŸ§ͺ EXAMPLES

The shlibs file for a typical library package, named libcrunch1, that provides one library whose SONAME is libcrunch.so.1, might read:

libcrunch 1 libcrunch1 (>= 1.2-1)

The dependencies must mention the most recent version of the package that added new symbols to the library: in the above example, new symbols were added to version 1.2 of libcrunch. This is not the only reason the dependencies might need to be tightened.

πŸ”— SEE ALSO


1.21.1   2025-09-09   deb-shlibs(5)

deb-shlibs(5)
🏷️ NAME πŸš€ Quick Reference πŸ“‹ SYNOPSIS πŸ“ DESCRIPTION πŸ”€ SONAME FORMATS πŸ§ͺ EXAMPLES πŸ”— SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 09:46 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!