Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

View Ebooks with Calibre

πŸ“… 2012-Feb-26 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ ebook reader ⬩ πŸ“š Archive

Calibre is a versatile GUI program and set of commandline tools which can be used to manage your local ebook library and to view, manipulate, convert and share ebook files.

Install

$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

This installs the calibre tools and files under /opt/calibre.

GUI Usage

The GUI of Calibre is where I perform most of the configuration and operations on my ebook library:

calibredb Usage

calibredb is the commandline tool to query and modify the Calibre database which is the ebook library directory on the disk. Note that all the calibredb commands require the --library-path option to work.

$ calibredb list --library-path=/path/to/your/library/

None of the calibredb commands (like the one above) will not work if you have the GUI program running in the background or if the content server is running. Stop the GUI program and content server to run the above command.

If you are running a Calibre content server, it can be disruptive to stop it just to access the library from the commandline. Instead connect to the content server and access the library through that:

$ calibredb --library-path="http://localhost:8080/" list

To get a list of all the unique IDs of the libraries being shared by the content server:

$ calibredb --library-path="http://localhost:8080/#-" list

To use a specific library in the calibredb commands use its ID:

$ calibredb --library-path="http://localhost:8080/#foobarlibraryid" list
$ calibredb list --library-path=/path/to/your/library/ --fields="title,pubdate"

Provide a comma separated list of book IDs to the remove command to remove those books from the library:

$ calibredb --library-path=/path/to/your/library/ remove 10,20,32-35

This command will not work on a content server.

To enable removal of books through content server, go to Preferences -> Sharing over the net -> Advanced and enable the Allow un-authenticated local connections to make changes option.

Tried with: Calibre 6.10


Β© 2023 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 Mastodon β€’ πŸ“§ Email