updating packages

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
dietpiOK
Posts: 79
Joined: Thu Mar 16, 2017 9:33 am

updating packages

Post by dietpiOK »

Hi,

I am wondering if "dietpi-update" is in any conflict with "apt-get update" and/or "apt-get upgrade".
Can anyone clarify this for me?

Best regards,
Olaf
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: updating packages

Post by Fourdee »

dietpiOK wrote:Hi,

I am wondering if "dietpi-update" is in any conflict with "apt-get update" and/or "apt-get upgrade".
Can anyone clarify this for me?

Best regards,
Olaf
If installed software needs to be patched/reinstalled during the update, apt-get update and apt-get upgrade will both be executed by dietpi-software.
This depends on what software you have installed, and if we need to run any patches on it during the update.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
dietpiOK
Posts: 79
Joined: Thu Mar 16, 2017 9:33 am

Re: updating packages

Post by dietpiOK »

Thanks for clarifying that.
So dietpi-update just takes care about the dietpi-software packages and during an update with the two commands all other packages will also be updated. Right?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: updating packages

Post by johnvick »

dietpiOK wrote:Thanks for clarifying that.
So dietpi-update just takes care about the dietpi-software packages and during an update with the two commands all other packages will also be updated. Right?
Not entirely - some packages take care of updating themselves - SickRage for example. Others have to be manually updated - Subsonic for example. Others are updated by apt-get update/upgrade - Emby-Server an example and core Debian packages like samba are updated the same way.

John
dietpiOK
Posts: 79
Joined: Thu Mar 16, 2017 9:33 am

Re: updating packages

Post by dietpiOK »

Thanks for clarifying that... How do I know which packages will be updated in what way?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: updating packages

Post by johnvick »

dietpiOK wrote:Thanks for clarifying that... How do I know which packages will be updated in what way?
If the program has a graphic interface like Emby or Sickrage - there will likely be a setting for this somewhere or it will alert you if an update is available. If it is core operating system stuff that runs behind the scenes this gets done by apt-get update/upgrade - just do this every so often. Remember to use dietpi-backup from time to time also in case an update goes wrong.

John
dietpiOK
Posts: 79
Joined: Thu Mar 16, 2017 9:33 am

Re: updating packages

Post by dietpiOK »

Thanks for claryfing that!
n8xyn
Posts: 26
Joined: Thu Apr 21, 2016 1:04 am

Re: updating packages

Post by n8xyn »

I myself have killed an install or two with apt-get dist-upgrade :-)
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: updating packages

Post by baz123 »

Fourdee wrote:
dietpiOK wrote:Hi,

I am wondering if "dietpi-update" is in any conflict with "apt-get update" and/or "apt-get upgrade".
Can anyone clarify this for me?

Best regards,
Olaf
If installed software needs to be patched/reinstalled during the update, apt-get update and apt-get upgrade will both be executed by dietpi-software.
This depends on what software you have installed, and if we need to run any patches on it during the update.
I'm still a little confused over this.
  1. Will running the apt-get update and apt-get upgrade commands upset a DietPi install?
  • How should individual packages be updated? If different for different packages, could something be added to the software entry on the forum please?
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: updating packages

Post by MichaIng »

For all software that was installed via APT package, thus apt upgrade has some influence on, you should be able to do this regularly without errors. However if we did some special config, that is broken due to API changes or something, we will fix this usually with the next DietPi version.

About non-repo software, I can only speak for Nextcloud and ownCloud, that web ui updating is no problem and I already tested the upcoming betas.
Some software binaries are pulled from dietpis own servers, thus apt has anyway no effect there.

Generally dietpi-update mainly takes care about the dietpi scripts, just besides that about the software package updates if new dietpi version gets installed. Thus regular apt/ui updates can/need to be done on top where possible.
Post Reply