]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man8/ldconfig.8
ld.so.8: tfix
[thirdparty/man-pages.git] / man8 / ldconfig.8
CommitLineData
fea681da
MK
1.\" Copyright 1999 SuSE GmbH Nuernberg, Germany
2.\" Author: Thorsten Kukuk <kukuk@suse.de>
3.\"
f0008367 4.\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
fea681da
MK
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.
9.\"
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.
14.\"
15.\" You should have received a copy of the GNU General Public
c715f741
MK
16.\" License along with this manual; if not, see
17.\" <http://www.gnu.org/licenses/>.
8ff7380d 18.\" %%%LICENSE_END
fea681da 19.\"
c11b1abf 20.\" Modified, 6 May 2002, Michael Kerrisk, <mtk.manpages@gmail.com>
fea681da 21.\" Change listed order of /usr/lib and /lib
eae2dfce 22.TH LDCONFIG 8 2012-05-10 "GNU" "Linux Programmer's Manual"
fea681da 23.SH NAME
3c6d314a 24ldconfig \- configure dynamic linker run-time bindings
fea681da
MK
25.SH SYNOPSIS
26.B /sbin/ldconfig
27[
28.B \-nNvXV
29]
30[
31.BR \-f\ conf
32]
33[
34.BR \-C\ cache
35]
36[
37.BR \-r\ root
38]
39.IR directory \ ...
40.PD 0
41.PP
42.PD
0daa9e92 43.B /sbin/ldconfig
fea681da
MK
44.B \-l
45[
46.B \-v
47]
48.IR library \ ...
49.PD 0
50.PP
51.PD
52.B /sbin/ldconfig
53.B \-p
54.SH DESCRIPTION
55.B ldconfig
56creates the necessary links and cache to the most recent shared
57libraries found in the directories specified on the command line,
58in the file
59.IR /etc/ld.so.conf ,
60and in the trusted directories
61.RI ( /lib
62and
63.IR /usr/lib ).
64The cache is used by the run-time linker,
0daa9e92 65.I ld.so
fea681da
MK
66or
67.IR ld-linux.so .
68.B ldconfig
2c5f1089 69checks the header and filenames of the libraries it encounters when
fea681da
MK
70determining which versions should have their links updated.
71.PP
72.B ldconfig
b87dcfb9 73will attempt to deduce the type of ELF libs (i.e., libc5 or libc6/glibc)
c13182ef 74based on what C libs, if any, the library was linked against.
9e92e193 75.\" The following sentence looks suspect
92057f4d 76.\" (perhaps historical cruft) -- MTK, Jul 2005
9e92e193
MK
77.\" Therefore, when making dynamic libraries,
78.\" it is wise to explicitly link against libc (use \-lc).
fea681da
MK
79.PP
80Some existing libs do not contain enough information to allow the deduction of
c13182ef
MK
81their type.
82Therefore, the
0daa9e92 83.I /etc/ld.so.conf
c13182ef 84file format allows the specification of an expected type.
33a0ccb2 85This is used
8478ee02 86.I only
33a0ccb2 87for those ELF libs which we can not work out.
c13182ef 88The format
fea681da 89is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6.
c13182ef
MK
90(This syntax also works on the command line.)
91Spaces are
8478ee02 92.I not
c13182ef
MK
93allowed.
94Also see the
4d9b6984 95.B \-p
fea681da
MK
96option.
97.B ldconfig
2c8d1c7d 98should normally be run by the superuser as it may require write
fea681da
MK
99permission on some root owned directories and files.
100.SH OPTIONS
101.TP
102.B \-v
103Verbose mode.
104Print current version number, the name of each directory as it
105is scanned, and any links that are created.
106Overrides quiet mode.
107.TP
108.B \-n
109Only process directories specified on the command line.
110Don't process the trusted directories
111.RI ( /lib
112and
113.IR /usr/lib )
114nor those specified in
115.IR /etc/ld.so.conf .
116Implies
117.BR \-N .
118.TP
119.B \-N
120Don't rebuild the cache.
121Unless
122.B \-X
123is also specified, links are still updated.
124.TP
125.B \-X
126Don't update links.
127Unless
128.B \-N
129is also specified, the cache is still rebuilt.
130.TP
131.B \-f conf
132Use
133.B conf
134instead of
135.IR /etc/ld.so.conf .
136.TP
137.B \-C cache
138Use
139.B cache
140instead of
141.IR /etc/ld.so.cache .
142.TP
143.B \-r root
144Change to and use
8478ee02 145.I root
fea681da
MK
146as the root directory.
147.TP
148.B \-l
c13182ef
MK
149Library mode.
150Manually link individual libraries.
151Intended for use by experts only.
fea681da
MK
152.TP
153.B \-p
154Print the lists of directories and candidate libraries stored in
155the current cache.
fea681da
MK
156.SH FILES
157.PD 0
158.TP 20
8478ee02 159.I /lib/ld.so
fea681da
MK
160run-time linker/loader
161.TP 20
8478ee02 162.I /etc/ld.so.conf
a898aac5 163File containing a list of colon, space, tab, newline, or comma-separated
fea681da
MK
164directories in which to search for libraries.
165.TP 20
8478ee02 166.I /etc/ld.so.cache
fea681da
MK
167File containing an ordered list of libraries found in the directories
168specified in
49019b8e
MK
169.IR /etc/ld.so.conf ,
170as well as those found in
171.I /lib
172and
173.IR /usr/lib .
fea681da 174.PD
8bfe5356 175.SH SEE ALSO
12960935
MK
176.BR ldd (1),
177.BR ld.so (8)