1LDCONFIG(8) Linux Programmer's Manual LDCONFIG(8)
2
3
4
6 ldconfig - configure dynamic linker run-time bindings
7
9 /sbin/ldconfig [-nNvXV] [-f conf] [-C cache] [-r root] directory...
10 /sbin/ldconfig -l [-v] library...
11 /sbin/ldconfig -p
12
14 ldconfig creates the necessary links and cache to the most recent
15 shared libraries found in the directories specified on the command
16 line, in the file /etc/ld.so.conf, and in the trusted directories, /lib
17 and /usr/lib (on some 64-bit architectures such as x86-64, /lib and
18 /usr/lib are the trusted directories for 32-bit libraries, while /lib64
19 and /usr/lib64 are used for 64-bit libraries).
20
21 The cache is used by the run-time linker, ld.so or ld-linux.so. ldcon‐
22 fig checks the header and filenames of the libraries it encounters when
23 determining which versions should have their links updated.
24
25 ldconfig will attempt to deduce the type of ELF libraries (i.e., libc5
26 or libc6/glibc) based on what C libraries, if any, the library was
27 linked against.
28
29 Some existing libraries do not contain enough information to allow the
30 deduction of their type. Therefore, the /etc/ld.so.conf file format
31 allows the specification of an expected type. This is used only for
32 those ELF libraries which we can not work out. The format is
33 "dirname=TYPE", where TYPE can be libc4, libc5, or libc6. (This syntax
34 also works on the command line.) Spaces are not allowed. Also see the
35 -p option. ldconfig should normally be run by the superuser as it may
36 require write permission on some root owned directories and files.
37
39 -c fmt, --format=fmt
40 (Since glibc 2.2) Cache format to use: old, new, or compat
41 (default).
42
43 -C cache
44 Use cache instead of /etc/ld.so.cache.
45
46 -f conf
47 Use conf instead of /etc/ld.so.conf.
48
49 -i, --ignore-aux-cache
50 (Since glibc 2.7) Ignore auxiliary cache file.
51
52 -l (Since glibc 2.2) Library mode. Manually link individual
53 libraries. Intended for use by experts only.
54
55 -n Process only the directories specified on the command line.
56 Don't process the trusted directories, nor those specified in
57 /etc/ld.so.conf. Implies -N.
58
59 -N Don't rebuild the cache. Unless -X is also specified, links are
60 still updated.
61
62 -p, --print-cache
63 Print the lists of directories and candidate libraries stored in
64 the current cache.
65
66 -r root
67 Change to and use root as the root directory.
68
69 -v, --verbose
70 Verbose mode. Print current version number, the name of each
71 directory as it is scanned, and any links that are created.
72 Overrides quiet mode.
73
74 -V, --version
75 Print program version.
76
77 -X Don't update links. Unless -N is also specified, the cache is
78 still rebuilt.
79
81 /lib/ld.so
82 Run-time linker/loader.
83 /etc/ld.so.conf
84 File containing a list of directories, one per line, in which to
85 search for libraries.
86 /etc/ld.so.cache
87 File containing an ordered list of libraries found in the direc‐
88 tories specified in /etc/ld.so.conf, as well as those found in
89 the trusted directories.
90
92 ldd(1), ld.so(8)
93
95 This page is part of release 5.04 of the Linux man-pages project. A
96 description of the project, information about reporting bugs, and the
97 latest version of this page, can be found at
98 https://www.kernel.org/doc/man-pages/.
99
100
101
102GNU 2017-09-15 LDCONFIG(8)