ld.so.conf(5)

ld.so.conf5

Ld.so configuration file

Usage

/etc/ld.so.conf

Overview

This file contains a list of directories, one per line, in which to search for libraries.

The file is parsed by ldconfig(8) and the results stored in /etc/ld.so.cache.

Directives

The syntax allows lines to start with the keyword include followed by a glob(7) pattern. Files matching that pattern will be processed as if their contents were included at that point.

Files

/etc/ld.so.conf

Examples

Example config file:

/lib
/usr/lib
/usr/local/lib
include /etc/ld.so.conf.d/*.conf

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.