How to Update Plex Media Server on Ubuntu from the Command Line

June 24, 2018
How to Update Plex Media Server on Ubuntu from the Command Line

“How to Update Plex Media Server on Ubuntu from the Command Line” covers the entire process of updating Plex Media Server on an Ubuntu machine from the command line. I have my Plex Media Server installed on an Ubuntu Desktop 16.04 machine that doubles as a NAS (Network Attached Storage) machine. The Ubuntu machine is running headless, as I rarely have a need to access the desktop environment. For this tutorial, I will use SSH to connect to the Ubuntu machine and we will use the command line to download and install a Plex Media Server update.

1. Open a web browser and enter the following URL into the address bar:

How to Update Plex Media Server on Ubuntu from the Command Line

2. Select your desired operating system from the dropdown on the left of the page. I am using a Linux distribution, so I chose Linux. If you are also using a Linux machine, you must choose your distribution by clicking on the button on the right of the page.

How to Update Plex Media Server on Ubuntu from the Command Line

3. A pop up will appear and we must choose the distribution that meets our needs. Instead of clicking on the selection, right click on the selection and select “copy link location” or similar from the dropdown. The objective is to copy the URL of the download to your system’s clipboard.

How to Update Plex Media Server on Ubuntu from the Command Line

4. With the link to the newest Plex Media Server download copied to the clipboard, we can now SSH into our Ubuntu machine to begin the update process. SSH into the machine that Plex Media Server is installed on and enter the following command to download the package, replacing the URL with the URL that you copied to your clipboard in step 3:

wget https://downloads.plex.tv/plex-media-server/1.13.2.5154-fd05be322/plexmediaserver_1.13.2.5154-fd05be322_amd64.deb
How to Update Plex Media Server on Ubuntu from the Command Line

5. Verify that your package downloaded by entering the following command into the terminal:

ls
How to Update Plex Media Server on Ubuntu from the Command Line

6. Now we can install the new package. To install the package, enter the following command into the terminal, replacing <The_Newest_Plex_Version> with the version that you downloaded:

sudo dpkg -i <The_Newest_Plex_Version>.deb
How to Update Plex Media Server on Ubuntu from the Command Line

7. Once the Plex Media Server update has been installed, we can remove the installation package that we downloaded to conserve space and keep our machine uncluttered. Enter the following command to remove the installation package from your system, replacing <The_Newest_Plex_Version> with the version that you downloaded:

rm <The_Newest_Plex_Version>.deb
How to Update Plex Media Server on Ubuntu from the Command Line

8. Now all we have to do is reboot the machine to apply the changes. To reboot the Ubuntu machine that Plex Media Server is installed on, enter the following command into the terminal:

sudo reboot
How to Update Plex Media Server on Ubuntu from the Command Line

9. You will lose connection to your machine and the SSH session will be terminated.

How to Update Plex Media Server on Ubuntu from the Command Line

10. Give your machine a few moments to reboot and begin enjoying your media again from your updated Plex Media Server!

How to Update Plex Media Server on Ubuntu from the Command Line