It took me a while, so I'll share it with all of you: to enable completely automatic updates of Plex Media Server on Ubuntu
[list]
[*]install package unattended-upgrades (as mentioned [here](https://help.ubuntu.com/12.04/serverguide/automatic-updates.html))
[*]modify your /etc/apt/apt.conf.d/50unattended-upgrades file to add the "Plex Team" origin to the "Allowed-Origins" section, it should look like this:
The key here is that the syntax apparently is "origin:suite". In the Plex repo there is an origin, but no suite... leaving it blank works, nonetheless.
I don’t really want to completely automate updates, just would like to get a command line version of clicking through the web ui: settings-> server -> check for updates
Mr. Worf’s script does not automate updates by default. It will tell you that your installed version of PMS is either current or that an update is available. Isn’t that what you wanted?
If you run it on cron, it will email you if there is an available update. It can also be told to download the updated package for you.
Or,
Do you use the repo provided by Plex.tv? If so you can run this command:
apt-cache policy plexmediaserver
That will tell you the installed version, a candidate version (which may or may not be different than the installed version), and a list of every version available from the repo.
@“frederick.grayson” said:
Mr. Worf’s script does not automate updates by default. It will tell you that your installed version of PMS is either current or that an update is available. Isn’t that what you wanted?
If you run it on cron, it will email you if there is an available update. It can also be told to download the updated package for you.
Or,
Do you use the repo provided by Plex.tv? If so you can run this command:
apt-cache policy plexmediaserver
That will tell you the installed version, a candidate version (which may or may not be different than the installed version), and a list of every version available from the repo.
Thanks, that is a step in the right direction, I just need to script a compare or clean up all the version table