About updates

Hi to all,

can someone clear a thing to me… how do we update our device. I know there is the option from the OSMC application in Kodi. But there is also the option with the apt-get update command.

I don’t understand the difference and I don’t know if the second is really necessary.

So how do we update? Only from the application in Kodi or for a better experience we should also update with a command?

Thank you…

Generally updating via the update command in MyOSMC is the right thing todo as it basically will do the same as what would be executed on the command line with the added beauty that it also automatically restarts OSMC if that is required by that update.

If you like the command line or if for whatever reason the Update in MyOSMC fails you can always use the command line with the below two commands:

sudo apt-get update
sudo apt-get dist-upgrade

The first command updates the local repository information while the second one executes the respective upgrade.

Till now I was using with the following order

sudo apt-get update
sudo apt-get upgrade

I never used the “dist-upgrade” command… what was I upgrading all this time???

upgrade is really dangerous since it will not install new packages that are not really dependant on the ones you have. The kernel package for instance (it is the same in Ubuntu and Debian)

so always use dist-upgrade!

sudo apt-get update
sudo apt-get dist-upgrade

For completeness, since dist-upgrade shuts down mediacenter (if it has been updated) you need to either

sudo systemctl start mediacenter

or

sudo reboot

after a dist-upgrade. The later is needed when the kernel has been upgraded.

It has been mentioned uncoutnable times NOT to use apt-get upgrade!!!

I ever use this by SSH:
sudo apt-get update && sudo apt-get -f dist-upgrade

When upgrade it’s complete i use by SSH:
sudo shutdown -r now

But it’s interesting… i need to shutdown the mediacenter before to lauch this ?

Nope.

1 Like