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?
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.
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.