commands.sh

ldconfig

linux

Configure symlinks and cache for shared library dependencies.

More info →

Options (1)

-p, --print-cacheboolean

Print the libraries in the cache and check whether a given library is present

Example: ldconfig {{[-p|--print-cache]}} | grep {{library_name}}

Examples (3)

Update symlinks and rebuild the cache (usually run when a new library is installed)

Update the symlinks for a given directory

sudo ldconfig -n path/to/directory

Print the libraries in the cache and check whether a given library is present

ldconfig [-p|--print-cache] | grep library_name
made by @shridhargupta | data from tldr-pages