encyclopegia.org

Ldconfig

In computing, ldconfig is a shell command used for creating and updating symbolic links and the cache for shared libraries. It is found in most Linux distributions and FreeBSD, and it is part of the glibc package. ldconfig works by searching for .so files in directories specified in the /etc/ld.so.conf file, the trusted directories ( /lib and /usr/lib , or /lib64 and /usr/lib64 on multilib systems), and any directories specified on the command line. The generated binary cache file, /etc/ld.so.cache , is used by ld.so to speed up library lookup at runtime. ldconfig can be compared to regsvr32 in Windows and ReactOS, and to dyld in macOS.

In computing, ldconfig is a shell command used for creating and updating symbolic links and the cache for shared libraries. It is found in most Linux distributions and FreeBSD, and it is part of the glibc package. ldconfig works by searching for .so files in directories specified in the /etc/ld.so.conf file, the trusted directories ( /lib and /usr/lib , or /lib64 and /usr/lib64 on multilib systems), and any directories specified on the command line. The generated binary cache file, /etc/ld.so.cache , is used by ld.so to speed up library lookup at runtime. ldconfig can be compared to regsvr32 in Windows and ReactOS, and to dyld in macOS. -c FORMAT , --format=FORMAT – specify which format to use: new (default), old, or compat) -i , --ignore-aux-cache – ignore the auxiliary cache file -l – manually link individual libraries -n – used to ignore /etc/ld.so.cache and the trusted directories and only process the directories specified on the command line. ( -N is implied, so the cache won't be rebuilt) -N – skips rebuilding the cache -v , --verbose – runs in verbose mode; prints version number, scanned directories, and all created links -V , --version – prints the version number -X – skips updating links -p – prints the current cache -r ROOT – specify a directory as the root directory Source:

References

No reference rows published for this article.

Cite this article

MLA

"Ldconfig." encyclopegia.org, 2025, https://encyclopegia.org/wiki/ldconfig. Accessed 24 November 2026.

Chicago

"Ldconfig." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/ldconfig.

APA

encyclopegia.org. (2025). Ldconfig. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/ldconfig

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1328304406 · 0.5 · snapshot enwiki-001328304406

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.