|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 514138
Join Date: Jan 2025
Device: Kobo Clara BW
|
Linux repo for updates?
Is there a way to add a repo to my Kubuntu PC for Calibre updates with apt in the future, or do I have to input the command listed on the download page every time?
|
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,215
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
https://www.mobileread.com/forums/sh...d.php?t=237233
bernie Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,277
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Currently you need to use the command line every time. I have it saved as an .sh file on my Linux VMs.
|
|
|
|
|
|
#4 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 514138
Join Date: Jan 2025
Device: Kobo Clara BW
|
Quote:
Thank you, both for sharing. I'm still new to Linux. |
|
|
|
|
|
|
#5 |
|
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,039
Karma: 111111255
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Also on most Linux distros you can up arrow through history on a console, see the command and hit enter. Depends how much you use the console command line.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 126
Karma: 665010
Join Date: Jan 2022
Location: India
Device: Kobo Clara BW
|
I've set it up as alias in my ~/.bashrc
Code:
alias calibreup='sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin' whenever I get the notification for update I just type calibreup in my terminal. https://www.youtube.com/watch?v=Ok_kD_sgNcs Last edited by shuvashish76; 05-16-2025 at 08:57 PM. |
|
|
|
|
|
#7 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,832
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is how you post a YT video. Make sure you are in advanced mode. Click the YT icon. Paste the bit of the YT URL after the v=. In this case, it's kD_sgNcs. Paste it in the YT tags.
|
|
|
|
|
|
#8 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 514138
Join Date: Jan 2025
Device: Kobo Clara BW
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 126
Karma: 665010
Join Date: Jan 2022
Location: India
Device: Kobo Clara BW
|
Quote:
For users like me direct links are better. Anyways I trust this forum so added Local noop rule for 3rd-party frames (from youtube only) as permanent change. Just my personal preference
Last edited by shuvashish76; 05-17-2025 at 08:40 PM. |
|
|
|
|
|
|
#10 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,832
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#11 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 923
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
I've created a script to install Calibre if there's a Linux update, but it needs to tell me when I have the latest version installed. I'm posting it in case it's useful to anyone. I'll translate it to English.
Code:
#!/bin/bash
echo " Checking installed version of calibre..."
installed_version_full=$(calibre --version 2>/dev/null | grep -oP '\d+\.\d+(\.\d+)?')
if [ -z "$installed_version_full" ]; then
echo "❌ calibre is not installed or the version could not be detected."
notify-send "⚠️ calibre is not installed or the version could not be detected."
exit 1
fi
# If the installed version has only 2 numbers, add .0 for proper comparison
if [[ "$installed_version_full" =~ ^[0-9]+\.[0-9]+$ ]]; then
installed_version_full="${installed_version_full}.0"
fi
echo " Installed version: $installed_version_full"
echo " Checking latest available version..."
new_version=$(curl -s https://code.calibre-ebook.com/latest | jq -r '.tag_name')
if [ -z "$new_version" ]; then
echo "❌ Could not retrieve the latest version."
notify-send "⚠️ Could not retrieve the latest version of calibre."
exit 1
fi
echo " Latest available version: $new_version"
# Compare versions
if [ "$installed_version_full" = "$new_version" ]; then
echo "✅ calibre is up to date ($installed_version_full)."
notify-send "✅ calibre is up to date ($installed_version_full)."
exit 0
else
echo "⬇️ New version available: $new_version. Starting update..."
notify-send "⬇️ New version available: $new_version. Starting update..."
fi
# Download installer
installer_url="https://download.calibre-ebook.com/${new_version}/calibre-linux-installer.sh"
echo " Downloading from: $installer_url"
wget -q --show-progress -O calibre_installer.sh "$installer_url"
# Check if an HTML page was downloaded by mistake
if grep -q "<!DOCTYPE html>" calibre_installer.sh; then
echo "❌ Error: the installer was not downloaded correctly."
notify-send "⚠️ Error downloading calibre installer."
rm -f calibre_installer.sh
exit 1
fi
chmod +x calibre_installer.sh
# Run the installer
echo " Starting installation..."
sudo ./calibre_installer.sh
# Check installed version after installation
new_installed=$(calibre --version 2>/dev/null | grep -oP '\d+\.\d+(\.\d+)?')
if [[ "$new_installed" =~ ^[0-9]+\.[0-9]+$ ]]; then
new_installed="${new_installed}.0"
fi
if [ "$new_installed" = "$new_version" ]; then
echo "✅ calibre updated to $new_installed."
notify-send "✅ calibre updated to $new_installed."
else
echo "⚠️ The update did not complete successfully."
notify-send "⚠️ The update did not complete successfully."
fi
rm -f calibre_installer.sh
Last edited by dunhill; 05-18-2025 at 05:00 PM. |
|
|
|
|
|
#12 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 8196132
Join Date: Apr 2019
Location: East Coast, United States
Device: Kobo Sage, Kobo Clara HD, Galaxy Tab S5e, Kindle 4th Gen
|
I switched to the Flatpak years ago and never looked back.
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,832
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Update of the Ubuntu repo with the last version 7.20. | tom99 | Development | 14 | 10-20-2024 01:20 PM |
| PW4 Firmware Repo | Toj | Kindle Developer's Corner | 2 | 06-23-2022 08:27 PM |
| Native A KUAL extension. Linux Deploy: chrooted GNU/Linux for modern Kindle | zaoqi | Kindle Developer's Corner | 12 | 03-14-2020 12:41 PM |
| Upgrade from Ubuntu repo version to binary installer | huladaddy | Calibre | 7 | 07-30-2014 03:21 AM |
| Stop by my blog for my review of Repo Men | lmpreston | General Discussions | 1 | 03-23-2010 12:20 PM |