Originally Posted by pedrotech
From ldconfig help page:
-X Don't generate links
When do I need to update cache without links (re)generation?
If you want to just do a dry run test (ie, not add/remove links), you can use the '-X' flag along with the '-v' flag to see the list of links to be generated. You could alternatively use '-D', which holds off both the link generation and the cache update.