2018-08-30 14:27:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Thanks to Jerry Vonau (https://github.com/jvonau) who made this critical
|
|
|
|
# breakthrough possible!
|
|
|
|
#
|
|
|
|
# Might break future updates; you have been warned.
|
|
|
|
# SEE NOTES AT TOP OF scripts/calibre-install-packages.sh
|
|
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Prepares to update to latest from raspbian testing
|
|
|
|
echo "deb http://raspbian.raspberrypi.org/raspbian/ testing main" > /etc/apt/sources.list.d/rpi-testing.list
|
|
|
|
apt update
|
2018-08-30 17:24:08 +00:00
|
|
|
# @jvonau explains that stale .deb's should be avoided as: "apt will pick the highest version to install after churning a bit..."
|
2018-08-30 14:27:50 +00:00
|
|
|
apt -y install /opt/iiab/downloads/calibre*.deb
|
|
|
|
#sed -i '$ d' /etc/apt/sources.list.d/rpi-testing.list # Removes last line
|
|
|
|
rm /etc/apt/sources.list.d/rpi-testing.list
|
|
|
|
# Clears the cache of rpi/testing
|
|
|
|
apt update
|