Linux "ldconfig" Command Line Options and Examples
configure dynamic linker run-time bindings

ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.


Usage:

/sbin/ldconfig [-nNvXV] [-f conf] [-C cache] [-r root] directory...
    /sbin/ldconfig -l [-v] library...
    /sbin/ldconfig -p






Command Line Options:

-c
(Since glibc 2.2) Cache format to use: old, new, or compat (default).
ldconfig -c ...
-C
Use cache instead of /etc/ld.so.cache.
ldconfig -C ...
-f
Use conf instead of /etc/ld.so.conf.
ldconfig -f ...
-i
(Since glibc 2.7) Ignore auxiliary cache file.
ldconfig -i ...
-l
(Since glibc 2.2) Library mode. Manually link individual libraries. Intended for use by experts only
ldconfig -l ...
-N
Don't rebuild the cache. Unless -X is also specified, links are still updated.
ldconfig -N ...
-p
Print the lists of directories and candidate libraries stored in the current cache.
ldconfig -p ...
-r
Change to and use root as the root directory.
ldconfig -r ...
-v
Verbose mode. Print current version number, the name of each directory as it is scanned, and any links that are created.Overrides quiet mode.
ldconfig -v ...
-V
Print program version.
ldconfig -V ...
-X
FILES/lib/ld.soRun-time linker/loader./etc/ld.so.confFile containing a list of directories, one per line, in which to search for libraries./etc/ld.so.cacheFile containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found inthe trusted directories.
ldconfig -X ...