Every library has a catalog that tells the user what books are available in that library. If you do particular searches you are more likely to find primary sources. Assume we are searching for information about slavery. Good searches might be:
The terms after the 'and' in each of the above search statements are what help you locate primary sources. This is not an exhaustive list of terms, try others based upon your knowledge of the subject matter.