I’m looking for a way to automate downloads of the latest rpm when a new version comes out, rather than going through the website manually - is there a way? Something convenient like a downloads.plex.tv/media-server-downloads-new/latest.rpm or similar. Know what I mean?
Yes, there is a way. Here is a link to a script you can run (or run on cron). If you would rather not run a script, then examine its code to see how the author formulates the download URL and use that.
I have a repo file with this for contents:
[PlexRepo]
name=PlexRepo
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1
This is on CentOS 7, running a ‘yum upgrade’ will retrieve the latest.
That looks like a very useful tool, and I believe I can see how it works, thank you.
Ah yes, I recall there being a Plex Repo I used in the past, but I had a problem with this and it caused issues with DNF (I use Fedora). I might give it another go, thanks for the information.
Very interesting. The current PlexMediaServer RPM contains repository files for both RedHat Enterprise Linux format .repo files as well as OpenSuSE (/etc/yum.repos.d/plex.repo and /etc/zypp/repos.d/plex.repo.)
I’d have to dig into the RPMs further to figure out if those files will overwrite existing files, as I have a fairly well running system, I’m not horribly inclined to go down that road.
The packaging only uses RPM to update the package files, in /usr/lib/plexmediaserver and /lib/systemd/system/plexmediaserver.servce only.
The scripts only create new metadata storage, /var/lib/plexmediaserver, and create the plex user, plex:plex if they don’t exist. If an upgrade, nothing is touched (RPM tells us whether new or upgrade in the status flags passed).
$ rpm -qc plexmediaserver # list package configuration files
/etc/yum.repos.d/plex.repo
/etc/zypp/repos.d/plex.repo
/lib/systemd/system/plexmediaserver.service
So, local edits or pre-existing files don’t get overwritten. Very minor side effect is that the OpenSuSE repo file shows up on EL systems, and vice versa.
I should have remembered the configuration flag, I’ve used it often enough.
Edit: For anybody who’s reading through here, be aware that Plex’s repo files have the repositories disabled by default. I can certainly understand that point of view. You’ll have to enable the repository for automatic updates.
If I remember correctly, the issue was mainly when performing an update of the Fedora system to the next major version. I had to remove the repo to resolve it - I am probably going to try using it again to see if that happens next time I upgrade.
Slight tangent, due to finding this via a search, so others may as well:
If you use the RPM repo, things should work properly on openSUSE as it’s handled by zypper
.
Since they haven’t integrated my feedback, see here for openSUSE (since it’s been mentioned in the thread):
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.