Skip to content

Instantly share code, notes, and snippets.

@AaronO
Created April 3, 2014 20:52
Show Gist options
  • Save AaronO/9962667 to your computer and use it in GitHub Desktop.
Save AaronO/9962667 to your computer and use it in GitHub Desktop.

Install cask that extends the brew command :

brew install phinze/cask/brew-cask

Install calibre using cask :

brew cask install calibre

Setup $PATH for calibre (add ebook-convert and other commands to $PATH) :

export PATH="~/Applications/calibre.app/Contents/MacOS/:$PATH"

Or add it to your shell's .profile with :

echo 'export PATH=~/Applications/calibre.app/Contents/MacOS/:$PATH' >> ~/.profile

Now ebook-convert should be available :)

@nateberkopec
Copy link

As of 2016, it looks like you no longer have to edit your PATH.

@maiorano84
Copy link

As of 2017, it looks like you no longer need to run brew install phinze/cask/brew-cask.

brew cask install calibre should be enough to gain access to the ebook-convert command on modern OSX.

@sinameraji
Copy link

Great! thanks

@xmeng1
Copy link

xmeng1 commented Jan 27, 2019

echo 'export PATH=/Applications/calibre.app/Contents/MacOS/:$PATH' >> ~/.profile the Applications fold in the root folder I think

@witzawitz
Copy link

аs of 2021, way to install calibre & therefore ebook-convert
brew install --cask calibre

@martonlanga
Copy link

martonlanga commented Mar 6, 2021

7 years later, we are down to a three word command! (--cask is optional)

brew install calibre

@mousepotato
Copy link

should be

echo 'export PATH=/Applications/calibre.app/Contents/MacOS/:$PATH' >> ~/.profile

@bytearchive
Copy link

brew install calibre
progress !!!

@simkimsia
Copy link

for M1 apple silicon

brew install calibre

ebook-convert /path/to/input /path/to/output

works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment