1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/scripts/calibre-install-latest-rpi.sh

24 lines
887 B
Bash
Raw Normal View History

#!/bin/bash
2018-05-11 01:18:23 +00:00
# Thanks to Jerry Vonau (https://github.com/jvonau) who made this critical
# breakthrough possible!
#
# Calibre 3.23 is the latest available from testing as of 2018-05-10:
#
# http://raspbian.raspberrypi.org/raspbian/pool/main/c/calibre/
# http://archive.raspbian.org/raspbian/pool/main/c/calibre/
# https://packages.debian.org/search?keywords=calibre
# http://deb.debian.org/debian/pool/main/c/calibre/
#
# Might break future updates; you have been warned.
export DEBIAN_FRONTEND=noninteractive
2018-05-11 01:32:34 +00:00
# Prepare to update to latest from testing
echo "deb http://raspbian.raspberrypi.org/raspbian/ testing main" > /etc/apt/sources.list.d/rpi-testing.list
apt update
apt -y install calibre calibre-bin
2018-05-11 01:32:34 +00:00
# Remove last line, safer than: rm /etc/apt/sources.list.d/rpi-testing.list
sed -i '$ d' /etc/apt/sources.list.d/rpi-testing.list
# Clears the cache of testing
apt update