#FIG 2.1 80 2 1 3 0 1 -1 0 0 21 0.00000 1 0.000 65 149 5 5 65 149 70 149 1 3 0 1 -1 0 0 21 0.00000 1 0.000 64 254 5 5 64 254 69 254 1 3 0 1 -1 0 0 21 0.00000 1 0.000 63 358 5 5 63 358 68 358 1 3 0 1 -1 0 0 21 0.00000 1 0.000 63 543 5 5 63 543 68 543 2 1 0 3 -1 0 0 0 0.000 -1 0 0 19 49 859 49 9999 9999 2 1 0 3 -1 0 0 0 0.000 -1 0 0 19 629 859 629 9999 9999 4 0 19 18 0 -1 0 0.00000 4 21 379 39 39 Troubleshooting and Repairing a Linux System 4 0 31 36 0 -1 0 0.00000 4 40 614 79 99 Upgrading Shared Libraries Safely 4 0 16 32 0 -1 0 0.00000 4 38 374 79 159 Update .a and .sa files first 4 0 17 24 0 -1 0 0.00000 4 29 549 119 226 old .a and .sa files: cp *.a *.sa /usr/lib (for example). 4 0 16 32 0 -1 0 0.00000 4 38 329 79 264 Update .so.version files 4 0 17 24 0 -1 0 0.00000 4 29 702 119 194 Unless a compilation is in progress, it's usually safe to copy over  4 0 16 32 0 -1 0 0.00000 4 38 329 79 369 Update .so.version files 4 0 17 24 0 -1 0 0.00000 4 29 623 119 294 The file libfoo.so.x.y is the actual library file; copy it to the  4 0 17 24 0 -1 0 0.00000 4 29 681 119 329 appropriate location WITHOUT touching old version or symlink 4 0 17 24 0 -1 0 0.00000 4 29 680 119 404 To update the libfoo.so.x symlink atomically, use the command  4 0 17 24 0 -1 0 0.00000 4 29 456 119 439 ln -sf /lib/libfoo.so.x.y /lib/libfoo.so.x 4 0 17 24 0 -1 0 0.00000 4 29 656 119 474 This is important! If you remove the symlink or the old library 4 0 17 24 0 -1 0 0.00000 4 29 667 119 509 file (esp. for libc and libm) your system may become unusable 4 0 16 32 0 -1 0 0.00000 4 38 396 79 554 Update shared library cache 4 0 17 24 0 -1 0 0.00000 4 29 629 119 589 It never hurts to run /sbin/ldconfig after updating libraries