2018-04-06 23:03:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-05-11 01:18:23 +00:00
|
|
|
# Thanks to Jerry Vonau (https://github.com/jvonau) who made this critical
|
|
|
|
# breakthrough possible!
|
|
|
|
#
|
2018-06-18 20:23:39 +00:00
|
|
|
# SEE COMMENTS AT THE TOP OF scripts/calibre-install-packages.sh
|
2018-04-06 23:03:38 +00:00
|
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2018-07-22 20:54:24 +00:00
|
|
|
# Prepares to update to latest from raspbian testing
|
2018-04-06 23:03:38 +00:00
|
|
|
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-07-22 20:54:24 +00:00
|
|
|
## Removes last line, safer than: rm /etc/apt/sources.list.d/rpi-testing.list
|
|
|
|
#sed -i '$ d' /etc/apt/sources.list.d/rpi-testing.list
|
|
|
|
rm /etc/apt/sources.list.d/rpi-testing.list
|
2018-04-06 23:03:38 +00:00
|
|
|
# Clears the cache of testing
|
|
|
|
apt update
|