2. A collection of books, newspapers, records, tapes, or other materials that are valuable for research.
3. In computing, a collection of standard programs and subroutines that are stored and available for immediate use.
From Latin, libraria, "bookshop", literally, "of books", from, ultimately, liber, "book" (literally "inner bark of a tree", which was once used as writing material).
Apparently first appeared in 1374, from Anglo-French librarie, from Old French librairie "collection of books," a noun use of the adjective form librarius "concerning books," from Latin librarium "chest for books," from liber "book, paper, parchment," originally "the inner bark of trees".
The equivalent word in most Romance languages now means "bookseller's shop." Librarian is from 1713; earlier form was "library-keeper" (1647).