lib${LIBNAME}${API_VERSION}.so.${MAJOR_VERSION}. Usually, ${API_VERSION} is empty. So, it becomes something like libTQ84.so.2. $MAJOR_VERSION is incremented when the library's interface changes. ${SONAME}.${MINOR_VERSION}.${RELEASE_NUMBER}. The name is the name of the file that contains the actual code of the library. /usr/lib or /usr/local/lib.