gitbls / sdm

Raspberry Pi SD Card Image Manager
MIT License
469 stars 48 forks source link

How to best update sdm? #250

Closed rvaneerd closed 3 months ago

rvaneerd commented 3 months ago

Hi, I noticed some updates to the git repository have been applied. That makes me wonder how to best update the existing sdm installation as there seems to be only a way of installing (and removing).

When I do run that installer again, I get this: 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. I may have re-installed several times before I started this new issue causing the "9 not upgraded" because they might have been upgraded during the earlier attempts.

I did find the documentation https://github.com/gitbls/sdm/blob/master/Docs/Installing-or-Removing-sdm.md

I could remove SDM and re-install it but is running the installer again the way to update it?

Regards, Rob.

gitbls commented 3 months ago

Indeed, the supported way to update sdm is to run the installer again. At the moment EZsdmInstaller is a self-contained script, so the list of files that it downloads are contained within, necessitating the re-download. So, an upgrade is simply:

curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash

EZsdmInstaller will also try to install the sdm-required system packages via sdm, but it will quickly find that they're already installed, which you are seeing with the '0 upgraded, 0 newly installed'.

The 9 not upgradedmeans that if you do

sudo apt list --upgradable

you'll see the list of 9 packages that can be updated with sudo apt upgrade. These packages have nothing to do with sdm, but are reported by the apt command.

rvaneerd commented 3 months ago

Hi @gitbls, As mentioned in #251 I can continue. How to access /etc/sdm/apt.log is now clear to me.

Because of that this issue can be closed.

Regards and thanks for the support, Rob

gitbls commented 3 months ago

Hi @gitbls, As mentioned in #251 I can continue. How to access /etc/sdm/apt.log is now clear to me.

Because of that this issue can be closed.

Regards and thanks for the support, Rob

Great, thanks for the followup! Please don't hesitate to ping me if you run into any unsolvable issues.