1ldconfig(8)                 System Manager's Manual                ldconfig(8)
2
3
4

NAME

6       ldconfig - configure dynamic linker run-time bindings
7

SYNOPSIS

9       /sbin/ldconfig [-nNvVX] [-C cache] [-f conf] [-r root] directory ...
10
11       /sbin/ldconfig -l [-v] library ...
12
13       /sbin/ldconfig -p
14

DESCRIPTION

16       ldconfig  creates  the  necessary  links  and  cache to the most recent
17       shared libraries found in the  directories  specified  on  the  command
18       line, in the file /etc/ld.so.conf, and in the trusted directories, /lib
19       and /usr/lib.  On some 64-bit architectures such as  x86-64,  /lib  and
20       /usr/lib are the trusted directories for 32-bit libraries, while /lib64
21       and /usr/lib64 are used for 64-bit libraries.
22
23       The cache is  used  by  the  run-time  linker,  ld.so  or  ld-linux.so.
24       ldconfig checks the header and filenames of the libraries it encounters
25       when determining  which  versions  should  have  their  links  updated.
26       ldconfig  should  normally  be  run  by the superuser as it may require
27       write permission on some root owned directories and files.
28
29       ldconfig will look only at files that are named lib*.so*  (for  regular
30       shared  objects)  or  ld-*.so*  (for the dynamic loader itself).  Other
31       files will be ignored.  Also, ldconfig expects a certain pattern to how
32       the symbolic links are set up, like this example, where the middle file
33       (libfoo.so.1 here) is the SONAME for the library:
34
35           libfoo.so -> libfoo.so.1 -> libfoo.so.1.12
36
37       Failure to follow this pattern may result in compatibility issues after
38       an upgrade.
39

OPTIONS

41       -c fmt
42       --format=fmt
43              (Since  glibc  2.2)  Use  cache format fmt, which is one of old,
44              new, or compat.  Since glibc 2.32, the default is  new.   Before
45              that, it was compat.
46
47       -C cache
48              Use cache instead of /etc/ld.so.cache.
49
50       -f conf
51              Use conf instead of /etc/ld.so.conf.
52
53       -i
54       --ignore-aux-cache
55              (Since glibc 2.7) Ignore auxiliary cache file.
56
57       -l     (Since  glibc  2.2) Interpret each operand as a library name and
58              configure its links.  Intended for use only by experts.
59
60       -n     Process only the directories  specified  on  the  command  line;
61              don't  process  the  trusted directories, nor those specified in
62              /etc/ld.so.conf.  Implies -N.
63
64       -N     Don't rebuild the cache.  Unless -X is also specified, links are
65              still updated.
66
67       -p
68       --print-cache
69              Print the lists of directories and candidate libraries stored in
70              the current cache.
71
72       -r root
73              Change to and use root as the root directory.
74
75       -v
76       --verbose
77              Verbose mode.  Print current version number, the  name  of  each
78              directory  as  it  is  scanned,  and any links that are created.
79              Overrides quiet mode.
80
81       -V
82       --version
83              Print program version.
84
85       -X     Don't update links.  Unless -N is also specified, the  cache  is
86              still rebuilt.
87

FILES

89       /lib/ld.so
90              is the run-time linker/loader.
91       /etc/ld.so.conf
92              contains a list of directories, one per line, in which to search
93              for libraries.
94       /etc/ld.so.cache
95              contains an ordered list of libraries found in  the  directories
96              specified  in  /etc/ld.so.conf,  as  well  as those found in the
97              trusted directories.
98

SEE ALSO

100       ldd(1), ld.so(8)
101
102
103
104Linux man-pages 6.04              2023-03-11                       ldconfig(8)
Impressum