102.3 Manage Shared Libraries Flashcards

1
Q

What is a shared library?

A
  • Files containing functionality that other applications can use
  • These files and in a .so for shared object
  • Found in the following locations on a Linux system
    • /lib
    • /usr/lib (for 32 bit systems) and /usr/lib64 (for 64 bit systems)
  • /usr/local/lib
  • /usr/share

Two types of library files

  • Dynamic (ends in .so)
  • Statically linked (ends in .a)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you produce a list of dependencies for a particular binary?

A

use ldd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you configure dynamic linker run-time bindings?

A

ldconfig

Creates a cache based on library directory locations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the legacy environment variable that points to a path where library files can be read from?

A

LD_LIBRARY_PATH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is configuration file that points to a path where library files can be read from?

A

/etc/ld.so.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly