Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
ldconfig
Synopsis
ldconfig [options] directories
Description
System administration command. Examine the libraries in the given directories, /etc/ld.so.conf, /usr/lib, and /lib; update links and cache where necessary. Usually run in startup files or after the installation of new shared libraries.
Options
- -D
Debug. Suppress all normal operations.
- -l
Library mode. Expect libraries as arguments, not directories. Manually link specified libraries.
- -n
Suppress examination of /usr/lib and /lib and reading of /etc/ld.so.conf; do not cache.
- -N
Do not cache; only link.
- -p
Print all directories and candidate libraries in the cache. Expects no arguments.
- -v
Verbose. Include version number, and announce each directory as it is scanned and links as they are created.
- -X
Do not link; only rebuild cache.
Files
- /lib/ld.so
Linker and loader.
- /etc/ld.so.conf
List of directories that contain libraries.
- /etc/ld.so.cache
List of the libraries found in those libraries mentioned in /etc/ld.so.conf.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access