Since libraries existed before books did, the question of whether books are required really exhibits a high degree of ignorance on the part of the questioner.
I visited the ancient ruins of Ephesus in what is now Turkey, including the free library which was established there by two freed slaves who became rich. The cubby holes for the papyrus scrolls and texts on hides are still there near the 2000 year-old checkout counter. But there's not a single "book shelf" there.
Likewise, the public lavatory up the main street from the library didn't have any paper either, so a small stream ran past the feet of everyone sitting over a toilet hole on the stone benches so they could clean their hands when they were done!
The fact that the "books" are now all electronic means little vs paper, even though in many cases I still prefer to read and a bound-paper book. I wish Chemical Abstracts, in which which I spent many hours of research looking for organic synthetic techniques in college and as an industrial research chemist, was electronic when I went to school then entered the private workforce in the 70's: I could have searched by keywords instead of going through the indices of volume after volume.
In any case, today's library is still a centralized knowledge and literature source.
- Of course there will always be a place for books. I still have several. They're next to my chariots, cuneiform tablets and buggy whips.