Skip to content

Instantly share code, notes, and snippets.

@YoSoyPhil
Last active February 5, 2019 08:33
Show Gist options
  • Save YoSoyPhil/2ccbc911cd468be2a824783ba7cc3b40 to your computer and use it in GitHub Desktop.
Save YoSoyPhil/2ccbc911cd468be2a824783ba7cc3b40 to your computer and use it in GitHub Desktop.
For updating Plex on CentOS 7
#!/bin/bash
PLEX_TOKEN="$1"
PLEX_URL="https://plex.tv/downloads/latest/ \
1?channel=8 \
&build=linux-ubuntu-x86_64 \
&distro=redhat \
&X-Plex-Token"
PLEX_FILE=/tmp/plexmediaserver.rpm
wget -O $PLEX_FILE "$PLEX_URL=$PLEX_TOKEN"
yum localinstall -y $PLEX_FILE
rm -rf $PLEX_FILE
systemctl restart plexmediaserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment