# A Script for manual Plex Updates (.PMS\_UpdaterPLEXPASS) - Recently Updated

**URL:** <https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435>\
**Category:** Plex Media Server\
**Tags:** server-linux, server-freebsd, server-truenas\
**Created:** [April 14, 2021, 4:15pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435 "2021-04-14T16:15:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SavioDesign](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/saviodesign/32/14480_2.png) [@SavioDesign](https://forums.plex.tv/u/SavioDesign)\
**Post date:** [April 14, 2021, 4:15pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/1 "2021-04-14T16:15:24Z")

</div>

Plex Updates via PMS Updater

Using the Plex Media Server (PMS) updater will require you to choose a " -l" option for “local”. This is because it can no longer find and associate the correct URL associated with PMS update files.

Something like this would suffice:

**From a browser:**

Log into the **PMS’s Web UI** \>

Navigate to: **Settings\> General** , and download the PMS Update tarball file ending in " **.tar.bz2**"

- Save the tarball “pms.update.123\*\*\*\*\*\*\*\*\*\*\*\*.tar.bz2” in a location accessible from a **windows share**
- This same location should be mounted within the associated **PMS jail** under **/download**

**From Terminal (putty, mobaxterm, etc):**

Log into the IOCAGE associated with PMS  
**iocage console \<name\_of\_jail\>**  
e.g.  
**iocage console pms**

From your home directory create a folder called “ **pms\_updater”**  
**mkdir -p pms\_updater**

Navigate into the folder you just created and download the **PMS\_UpdaterPLEXPASS.sh** script  
**cd**  **pms\_updater**  
**fetch [https://raw.githubusercontent.com/luluhoc/PMS\_Updater/master/PMS\_UpdaterPLEXPASS.sh](https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh)**  
_Note: fetch & the URL are all one line_

Next move the file to the same directory as the script and rename .tar file as **pms.update.tar.bz2**  
e.g.  
mv /media/download/PlexMediaServer\* ~/pms\_updater/pms.update.tar.bz2

Update Plex:  
**./PMS\_UpdaterPLEXPASS.sh -l pms.update.tar.bz2 -vv -a**

**You should see the following output:**  
Verifying pms.update.tar.bz2 …Done  
Removing previous PMS Backup …Done.

Stopping Plex Media Server  
…plexmediaserver\_plexpass not running? (check/var/run/plex/plex.pid).  
Done.  
Moving current Plex Media Server to backup location …Done.  
Extracting pms.update.tar.bz2 …Done.  
Starting Plex Media Server …Starting plexmediaserver\_plexpass.  
Done.

If it doesn’t look like the update took immediately, either refresh the PMS Web UI (browser)  
or Exit the IOCAGE and restart the IOCAGE /Jail:  
**iocage restart \<jail\_name\>**

e.g.  
**iocage restart plex**

Validate via the Web UI once more under **Settings\> General** and you should be golden.

~ ♠ S A V I O ♠

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [April 14, 2021, 5:05pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/2 "2021-04-14T17:05:53Z")

</div>

Curious does you script do something different than this long running tool ?

> **[mrworf/plexupdate](https://github.com/mrworf/plexupdate)**
>
> Plex Update script to simplify the life of Linux Plex Media Server users.

---

<div class="post-metadata">

**Author:** ![SavioDesign](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/saviodesign/32/14480_2.png) [@SavioDesign](https://forums.plex.tv/u/SavioDesign)\
**Post date:** [April 14, 2021, 5:33pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/3 "2021-04-14T17:33:12Z")

</div>

It’s not my script, but rather a fix/workaround what’s broken in this script.  
I explained it this way as i assume that many people are not completely comfortable using CLI.  
Also, once it’s set up right, you could script it to run simplistically; less the tarball download from the Plex URL

---

<div class="post-metadata">

**Author:** ![Orko](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/orko/32/82522_2.png) [@Orko](https://forums.plex.tv/u/Orko)\
**Post date:** [April 14, 2021, 7:05pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/4 "2021-04-14T19:05:58Z")

</div>

offtopic: just out of curiosity, is iocage still actively developed?

---

<div class="post-metadata">

**Author:** ![SavioDesign](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/saviodesign/32/14480_2.png) [@SavioDesign](https://forums.plex.tv/u/SavioDesign)\
**Post date:** [April 14, 2021, 11:52pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/5 "2021-04-14T23:52:22Z")

</div>

As in FreeBSD Builds? Yes.

---

<div class="post-metadata">

**Author:** ![SavioDesign](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/saviodesign/32/14480_2.png) [@SavioDesign](https://forums.plex.tv/u/SavioDesign)\
**Post date:** [April 14, 2021, 11:57pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/6 "2021-04-14T23:57:34Z")

</div>

This seems to be set up for Linux/Debian type systems.  
I haven’t had the time to test this one out yet, but it looks promising!

Thanks for the find @hthighway

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 13, 2021, 11:58pm UTC](https://forums.plex.tv/t/a-script-for-manual-plex-updates-pms-updaterplexpass-recently-updated/709435/7 "2021-07-13T23:58:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
