Growing out of this discussion:
Official Calibre PPA?, here is a simple bash script to update calibre on linux.
Note: This can also perform the first-time install, since the version check returns the same failure for out-of-date as it does if there is no calibre installed.
Thanks to
aleyx for working on the version checking!
EDIT: The script has been updated to fix a few problems. Also, you can now install the script and add the systemd timer or cron job (defaults to systemd timer, falls back on cron) by running the following one-liner in a terminal:
Code:
sudo -v && wget -nv -O- https://github.com/eli-schwartz/calibre-installer/raw/master/linux/calibre-installer.sh | sudo bash -
Everything is managed through my
GitHub repository
What this is doing, the manual way
New code:
Old code:
Explanation:
Save this as "calibre-upgrade.sh" (or whatever you want) and stick it in "/usr/bin/", to add it to your path. ("$HOME/bin/" works too, but this is for a system install, so this is nicer.
)
You can now update calibre by running
Code:
sudo calibre-upgrade.sh
but to make this fully automatic, simply add:
Code:
0 6 * * 5 /usr/bin/calibre-upgrade.sh > /dev/null 2>&1
or if you want the output emailed to you by cron, add
Code:
0 6 * * 5 /usr/bin/calibre-upgrade.sh
to your crontab (with the command "sudo crontab -e") and the updater will run every Friday at 6:00 AM. Presumably, you aren't awake at that time, but you can fill in whatever time you want.
Attached is a zip of the updater script (in a bin directory, and marked as executable), which can be extracted to "/usr/" (or $HOME) for your convenience.