1 .\" Copyright 1999 SuSE GmbH Nuernberg, Germany
2 .\" Author: Thorsten Kukuk <kukuk@suse.de>
4 .\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
5 .\" This program is free software; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of the
8 .\" License, or (at your option) any later version.
10 .\" This program is distributed in the hope that it will be useful,
11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 .\" General Public License for more details.
15 .\" You should have received a copy of the GNU General Public
16 .\" License along with this manual; if not, see
17 .\" <http://www.gnu.org/licenses/>.
20 .\" Modified, 6 May 2002, Michael Kerrisk, <mtk.manpages@gmail.com>
21 .\" Change listed order of /usr/lib and /lib
22 .TH LDCONFIG 8 2012-05-10 "GNU" "Linux Programmer's Manual"
24 ldconfig \- configure dynamic linker run-time bindings
56 creates the necessary links and cache to the most recent shared
57 libraries found in the directories specified on the command line,
60 and in the trusted directories
64 The cache is used by the run-time linker,
69 checks the header and filenames of the libraries it encounters when
70 determining which versions should have their links updated.
73 will attempt to deduce the type of ELF libs (i.e., libc5 or libc6/glibc)
74 based on what C libs, if any, the library was linked against.
75 .\" The following sentence looks suspect
76 .\" (perhaps historical cruft) -- MTK, Jul 2005
77 .\" Therefore, when making dynamic libraries,
78 .\" it is wise to explicitly link against libc (use \-lc).
80 Some existing libs do not contain enough information to allow the deduction of
84 file format allows the specification of an expected type.
87 for those ELF libs which we can not work out.
89 is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6.
90 (This syntax also works on the command line.)
98 should normally be run by the superuser as it may require write
99 permission on some root owned directories and files.
104 Print current version number, the name of each directory as it
105 is scanned, and any links that are created.
106 Overrides quiet mode.
109 Only process directories specified on the command line.
110 Don't process the trusted directories
114 nor those specified in
115 .IR /etc/ld.so.conf .
120 Don't rebuild the cache.
123 is also specified, links are still updated.
129 is also specified, the cache is still rebuilt.
135 .IR /etc/ld.so.conf .
141 .IR /etc/ld.so.cache .
146 as the root directory.
150 Manually link individual libraries.
151 Intended for use by experts only.
154 Print the lists of directories and candidate libraries stored in
160 run-time linker/loader
163 File containing a list of colon, space, tab, newline, or comma-separated
164 directories in which to search for libraries.
167 File containing an ordered list of libraries found in the directories
169 .IR /etc/ld.so.conf ,
170 as well as those found in