Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update DietPi-Software installed applications? #2246

Closed
shlatchz opened this issue Nov 14, 2018 · 10 comments
Closed

How to update DietPi-Software installed applications? #2246

shlatchz opened this issue Nov 14, 2018 · 10 comments
Labels
META Everything that is not code related, e.g. GitHub, Wiki, website, community Question ❔
Milestone

Comments

@shlatchz
Copy link

Hello,

I received a notification in Radarr that a new version is available

image

How can I update Radarr (and Sonarr, Jackett, Deluge and any other software I installed with dietpi-software) software without breaking the whole dietpi setup?

Thanks!

@MichaIng
Copy link
Owner

@shlatchz
Generally:

  • As usually to update APT packages (e.g. Sonarr/NzbDrone) regularly run apt update && apt full-upgrade.
  • Software that has internal update methods (via GUI or CLI) can be updated by this.
  • In case of Radarr, since is simply installed by downloading and unpacking an archive (https://api.github.com/repos/Radarr/Radarr/releases), you cannot break much. Although easiest is to dietpi-software reinstall 145
    • dietpi-software list to check the software IDs

@shlatchz
Copy link
Author

@MichaIng running dietpi-software reinstall 145 won't delete the DB?

@Fourdee
Copy link
Collaborator

Fourdee commented Nov 15, 2018

@shlatchz

Hi,

Radarr/Sonarr/Lidarr should be fine to reinstall via dietpi-software for updates from our side, as we do not touch any existing db files, previous one are left in place. This is of course assuming the latest Radarr/Sonarr/Lidarr binaries support the previous db files (which is the case in all my testing).

Jackett reinstall is currently non-functional in v6.17, fixed in v6.18: https://github.com/Fourdee/DietPi/issues/2212

Regardless, if in doubt, i'd highly recommend backing up the system, before-hand using:

dietpi-backup

Should any issues occur, and you have a backup, you can always revert the system to the previous state.

@shlatchz
Copy link
Author

Thanks @Fourdee @MichaIng !

@msdos
Copy link

msdos commented Nov 20, 2018

Should this information be somehow referenced in README.md?

@Fourdee Fourdee reopened this Nov 20, 2018
@Fourdee Fourdee added the META Everything that is not code related, e.g. GitHub, Wiki, website, community label Nov 20, 2018
@Fourdee
Copy link
Collaborator

Fourdee commented Nov 20, 2018

@msdos

Should this information be somehow referenced in README.md?

Yep, or Wiki/Forum link. We need to cover this somewhere 👍

@Fourdee Fourdee changed the title How to update a dietpi software? How to update DietPi-Software installed applications? Nov 20, 2018
@ilgrank
Copy link

ilgrank commented Feb 3, 2019

I'm running 6.20, and I've just installed Emby.
The installed version is 3.5.2.0, while latest is 4.0.1.0
is it normal DietPi installs an outdated version?
is it safe to upgrade? (via APT)?
Thanks!

Edit: For now, I just updated dietpi-software to point to the latest version, and did a dietpi-software reinstall, and it seems to be working fine.
Thanks everyone!

@bohtho
Copy link

bohtho commented Feb 17, 2019

Would this method also work on Node-RED ? I seem to remember it overwriting my configuration files and replacing the entire user directory the last time I tried to update Node-RED (via the GUI).

@MichaIng
Copy link
Owner

MichaIng commented Feb 17, 2019

@ilgrank
DietPi-Software installs software from different sources. If an APT package is available, in most cases we simply install this and it is safe to upgrade via apt-get upadate/upgrade commands, or our non-interactive but error handled wrappers G_AGUP && G_AGUG.
But in some cases there are no APT packages available, in other cases they are very outdated, since Debian is very conservative in adding new releases. In practice major versions are frozen in Debian releases, only minor and security updates will be released through the Debian repo.

Emby server is not available on Debian repos at all, so we need to download manually from their GitHub source: https://github.com/MediaBrowser/Emby.Releases/releases
Meanwhile we found a way to automatically catch the latest release from: https://api.github.com/repos/MediaBrowser/Emby.Releases/releases/latest

From v6.22 on, dietpi-software will automatically install the latest upstream version based on the method above: https://github.com/Fourdee/DietPi/pull/2525

@bohtho
EDIT: Just assure that you cannot update Node-RED via it's web interface, before doing the below. If an internal updater is available this should be always used, as it might contain some useful or required backup and/or migration steps.
Node-RED is installed via a totally different method. It is a (as can be seen by the name) Node.js module and installed via npm, the Node Package Manager.
You can update it accordingly via: npm up -g node-red

  • npm the Node Package Manager binary
  • up alias for the update command
  • -g to handle the package globally (system wide) instead of installing/updating it within the current directory (locally).
  • And the module/package names at the end.

You can also update all outdated globally installed Node modules (there are some Node-RED core modules that cannot be updated via the web UI), simply leave the module/package field empty: npm up -g

@MichaIng MichaIng added this to the Website Tasks milestone Feb 27, 2019
@MichaIng MichaIng modified the milestones: Website/Wiki Tasks, v6.24 May 7, 2019
@MichaIng MichaIng modified the milestones: v6.24, v6.25 May 15, 2019
@MichaIng MichaIng modified the milestones: v6.25, v6.26 Jun 24, 2019
@MichaIng MichaIng modified the milestones: v6.26, v6.27 Sep 2, 2019
@MichaIng MichaIng modified the milestones: v6.27, v6.28 Nov 13, 2019
@MichaIng MichaIng modified the milestones: v6.28, v6.29 Jan 3, 2020
@MichaIng MichaIng modified the milestones: v6.29, v6.30 Mar 19, 2020
@MichaIng MichaIng removed this from the v6.30 milestone May 10, 2020
@MichaIng MichaIng added this to the v6.31 milestone May 10, 2020
@MichaIng MichaIng modified the milestones: v6.31, v6.32 Jun 24, 2020
@MichaIng
Copy link
Owner

MichaIng commented Jul 11, 2020

I'm btw constantly adding "Update to newest version:" to your online docs, when touching those. We'll complement this when porting/copying those to our shiny new docs website: https://dietpi.com/docs/user-optimised-software/

I mark this issue as closed hence, still WIP but discussion worked on at another place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
META Everything that is not code related, e.g. GitHub, Wiki, website, community Question ❔
Projects
None yet
Development

No branches or pull requests

6 participants