They partially, but not completely worked for me.
#Remove drm from epub using command line how to#
If you're using WINE/Linux, the DeDRM plugin won't extract the keys by itself "auto-magically" without some fiddling.ĭeDRM_calibre_plugin/DeDRM_plugin_ReadMe.txt contains some suggestions on how to proceed. (Preferences > Advanced > Plugins > Load plugin from file.) Extract your kindle keys
#Remove drm from epub using command line install#
Install the calibre DeDRM plugin unzip DeDRM_tools_6.6.3.zipĬalibre-customize -add DeDRM_calibre_plugin/DeDRM_plugin.zipĪlternatively, after unzipping you can just install it via Calibre's standard UI. Install and run Kindle for PC wine64 KindleForPC-installer-0.exeĮnter your amazon account details, download the relevant books to the "device" (i.e. We can't use winetricks for Kindle for PC, as that installs version 1.20, which isn't as suitable. (There's a space in the sha256 hash, in the FAQ, for some reason.) winetricks If you don't trust me, a random person on the internet, to tell you the correct hash, (you have no reason to) you can go to the official FAQ, above - after all, you're already trusting the DeDRM plugin not to be malicious. To ensure that you've downloaded the "original" file (and not a modified version with bonus malware), you need to check the hash of the file. Unfortunately, that version of Kindle for PC is no longer available from Amazon's websites, so you'll need to google/duckduckgo for the filename KindleForPC-installer-0.exe and download it from some sketchy website. (Slightly more recent versions (≥1.24) use the sub-optimal KFX file format for downloaded books, while even more recent versions can't be "exploited" by the DeDRM plugin, at all.)
Link to the latest version.)įor best results you need an old version of Kindle for PC (≤1.17). (Closely based on the information from the official FAQ (snapshot). # sudo apt-get install winetricks # this is optional - see belowĭownload other necessary programs DeDRM plugin wget Install necessary programs using the package manager sudo apt-get install wine64 The following steps worked for me, on Ubuntu 18.04. I'm not going to go into the legality of the removal of DRM, as it varies by country - in some it falls under fair use, in others the situation is murky and in others yet it's explicitly illegal.