Keeping things up to date

I don’t like having auto update enabled so currently run…

apt-get update
apt-get install
apt-get upgrade

Does this keep Kodi up to date as well?

Yes (but you don´t need the install command).
This is actually the same as setting updates to never and using the manual function in My OSMC.

Ahh yeah install I guess you specify a package to install.

I like to manually do it from the command line so if I notice something odd I can potentially work out what it is :smile:

Does OSMC have any snapshot ability like BTRFS?

It should be sudo apt-get dist-upgrade or else you may miss some updates/additions

Checking for updates in the settings addon is almost identical to:

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

So if you turn off automatic updates in the settings addon and later choose “Scan for Updates now” under Manual Controls when you want to update you are doing exactly the same thing, with one small difference -

“Scan for Updates now” will not detect any updates being available if only Debian updates are available but no OSMC updates are available.

This was done so that users are not constantly notified (every day or two typically) of trivial updates to Debian packages that have no relevance to the functionality of OSMC and don’t provide any user facing features or critical bug fixes.

When an OSMC package update is available however, the OSMC packages AND any pending Debian package updates are all installed together to bring you right up to date with both.

If you would rather keep up to date with every insignificant Debian package update even when there are no OSMC updates you can do so by running dist-upgrade from the command line as above…

Something to be aware of if you are following the command line update route is that an update to Kodi, the OSMC Settings addon or OSMC Skin will cause Kodi to shut down (to a black screen) but it won’t restart again afterwards. (This is by design) To restart it:

sudo systemctl start mediacenter

Or reboot.

Another thing you might like to know is that even when you install updates via the OSMC settings app, the upgrade process is fully logged so you can check to see what went wrong afterwards if there was a problem.

In particular there is /var/log/apt/term.log which shows the exact same output you would have seen from running dist-upgrade at the command line. There is also /var/log/apt/history.log which shows a general history of apt install/upgrade/remove actions.

1 Like

Thanks all :smile:
But no snapshot ability?