We recently migrated to a new repository for distributing Plex Media Server releases that impacts how certain Linux distributions receive updates. If you’re on one of the supported distributions listed below and would like to continue receiving automated updates via your package manager, you’ll need to follow the steps outlined below to ensure everything continues to work properly.
- Supported distributions: DEB-based (Ubuntu, Debian etc.) or RPM-based (Fedora, CentOS, etc.). This article covers how to add the repository to Ubuntu and Fedora/CentOS. Other compatible distributions may work, but are not officially supported by Plex.
- Repository updating is currently only supported for public releases of Plex Media Server. It is not currently possible to use it for Plex Pass preview/beta releases.
- You’ll only need to complete these steps once. After that you should receive automated updates via your OS package manager
For those who wish to verify our public key, its correct md5sum is: 6e8e1cdd6a799cf9e03d7b01db30a45a
Install Automatically
The easiest way to complete this process is to execute the following command. It will automatically set up our repository and install the latest version of PMS:
curl -LsSf https://repo.plex.tv/scripts/setupRepo.sh | sudo bash
Install Manually
DEB-based distros (Ubuntu, etc.)
If you prefer to make these changes yourself, follow the instructions listed in this section for the specific Linux distribution you’re using.
Remove Old
Our repositories changed starting with the Plex Media Server v1.43.0 release. Users who were updating via the repository prior to that release are strongly recommended to remove the old repository (before setting up the new repository) via the following commands
rm -fv /etc/apt/sources.list.d/plex*
apt update
apt upgrade
Setup New
To setup the Plex Debian repository, first we need to create a `list` file at /etc/apt/sources.list.d/plex.list and setup the signing key with the following commands:
#Make sure that curl and gnupg2 are installed sudo apt update sudo apt install -y curl gnupg2 curl -L https://downloads.plex.tv/plex-keys/PlexSign.v2.key | sudo gpg --yes --dearmor -o /etc/apt/keyrings/plexmediaserver.v2.gpg sudo echo "deb [signed-by=/etc/apt/keyrings/plexmediaserver.v2.gpg] https://repo.plex.tv/deb/ public main" > /etc/apt/sources.list.d/plex.list
Now all that is remained to do is to install the Plex Media Server:
sudo apt update sudo apt install -y plexmediaserver
RPM-based distros (Fedora, CentOS, etc.)
Remove Old
Our repositories changed starting with the Plex Media Server v1.43.0 release. Users who were updating via the repository prior to that release are strongly recommended to remove the old repository (before setting up the new repository) via the following commands
rm -f /etc/yum.repos.d/repos.d/plex.repo* yum update yum upgrade
Setup New
Note: You will need rpm >= 4.16 to use the rpm repository.
Use the following commands to create a `repo` file:
sudo cat > /etc/yum.repos.d/repos.d/plex.repo <<EOF [PlexTv] name=Plex.tv baseurl=https://repo.plex.tv/rpm/ enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.v2.key EOF sudo dnf clean all sudo dnf makecache -y
and finally install the Plex Media Server via:
sudo dnf install -y plexmediaserver
Once you’ve done that, you can then update your Plex Media Server to the current public release by running your update program or `dnf update` and Plex Media Server will automatically get updated too.
Note: Once your Plex Media Server updates, be sure to start the server again so things are running correctly.
openSUSE
Remove Old
Our repositories changed starting with the Plex Media Server v1.43.0 release. Users who were updating via the repository prior to that release are strongly recommended to remove the old repository (before setting up the new repository) via the following commands
rm -f /etc/yum.repos.d/repos.d/plex.repo* sudo zypper clean --all sudo zypper refresh
Setup New
Note: You would need rpm >= 4.16 to use the rpm repository.
Use the following commands to create a `repo` file:
sudo cat > /etc/zypp/repos.d/plex.repo <<EOF [PlexTv] name=Plex.tv baseurl=https://repo.plex.tv/rpm/ enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.v2.key EOF sudo zypper clean --all sudo zypper refresh
Then install the Plex Media Server via:
sudo zypper install -y plexmediaserver
Open the “Software Repositories” app
Find the “PlexRepo” entry
Set that entry to Enabled and Auto Refresh