# \[QPKG\] sherpa: a mini-package-manager (CLI)

**URL:** <https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081>\
**Category:** General\
**Tags:** qpkg, sherpa, bash, package\
**Created:** [April 24, 2025, 5:53pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081 "2025-04-24T17:53:31Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![campino76](https://community.qnap.com/user_avatar/community.qnap.com/campino76/32/5987_2.png) [@campino76](https://community.qnap.com/u/campino76)\
**Post date:** [October 24, 2025, 6:12pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/44 "2025-10-24T18:12:28Z")

</div>

Ah, okay. I’m Austrian… I live in southern Styria.

I got into Die Toten Hosen through my girlfriend at the time. She’s been gone for a long time, but the Hosen have stayed… 😁

---

<div class="post-metadata">

**Author:** ![dolbyman](https://community.qnap.com/user_avatar/community.qnap.com/dolbyman/32/136_2.png) [@dolbyman](https://community.qnap.com/u/dolbyman)\
**Post date:** [October 24, 2025, 6:14pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/45 "2025-10-24T18:14:51Z")

</div>

We need an ‘off topic’ section, so I can move our ‘blerp’ posts there.

Sorry @OnceCD for garbaging up up your topic

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 24, 2025, 7:29pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/46 "2025-10-24T19:29:11Z")

</div>

No worries mate, I’ve done worse. 😉

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 24, 2025, 7:32pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/47 "2025-10-24T19:32:45Z")

</div>

@jimpoison @campino76 I’ve removed the various available Python QPKGs as conflicts, and am testing the new packages now.

I added these a while back out of an abundance of caution, but - after re-examining this - I don’t think the other Python packages will really cause an issue.

There will be a new package release today with updated QPKG versions. 🤓

---

<div class="post-metadata">

**Author:** ![jimpoison](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jimpoison](https://community.qnap.com/u/jimpoison)\
**Post date:** [October 24, 2025, 8:24pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/48 "2025-10-24T20:24:36Z")

</div>

It works like a charm now. Thank you very much!👍

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 8:18pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/49 "2025-10-27T20:18:56Z")

</div>

I just updated sherpa and SABnzbd after the most recent upgrade and everything worked fine. I then noticed that nzbToMedia had a new version so I upgraded that as well.

Today I could see that SABnzbd had grabbed a file, but it was still in my download folder and hadn’t been processed by nzbToMedia.

SABnzbd still points to the correct script folder, but all script categories are set to default, and worse, the folder where I kept the nzbToMedia cfg files is empty. The nzbToMedia.prev folder is also empty except for an empty folder named nzbToMedia.

This was not an issue yesterday before running the upgrades, and I have no clue which program did this.

I can see the original files, all with the timestamp when it happened yesterday, in the repo-cache folder, and I can see autoProcessMedia.cfg in the same folder with my settings, but I have no idea how to get it back in a working condition.

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:00pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/50 "2025-10-27T21:00:11Z")

</div>

Hi @FoP , let’s see if we can get this fixed.

What is the path to `script_dir` in your SABnzbd config?

```auto
getcfg misc script_dir -f $(getcfg SABnzbd Install_Path -f /etc/config/qpkg.conf)/config/config.ini

```

And where is your nzbToMedia QPKG installed?

```auto
getcfg nzbToMedia Install_Path -f /etc/config/qpkg.conf

```

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 9:03pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/51 "2025-10-27T21:03:03Z")

</div>

/share/Download/nzbToMedia and /share/MD0\_DATA/.qpkg/nzbToMedia respectively

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:05pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/52 "2025-10-27T21:05:32Z")

</div>

Let’s try re-creating the symlink:

```auto
ln -sf /share/MD0_DATA/.qpkg/nzbToMedia /share/Download/nzbToMedia

```

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 9:12pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/53 "2025-10-27T21:12:16Z")

</div>

Done. In the /share/Download/nzbToMedia, I now see the folder /nzbToMedia

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:18pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/54 "2025-10-27T21:18:51Z")

</div>

Is there anything in that second nzbToMedia directory?

If not, delete it.

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 9:33pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/55 "2025-10-27T21:33:13Z")

</div>

Sorry, should have mentioned that it contains everything as seen when looking directly in the /.qpkg/nzbToMedia folder, ie /repo-cache, /pip-cache etc.

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:34pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/56 "2025-10-27T21:34:48Z")

</div>

Oops, my bad: that symlink we created needs adjustment.

Try this one instead:

```auto
ln -sf /share/MD0_DATA/.qpkg/nzbToMedia/repo-cache /share/Download/nzbToMedia

```

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 9:39pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/57 "2025-10-27T21:39:48Z")

</div>

OK, so there’s now /repo-cache in the /Download/nzbToMedia folder, with all the contents

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:41pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/58 "2025-10-27T21:41:30Z")

</div>

Excellent. So, should be OK now?

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 9:47pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/59 "2025-10-27T21:47:26Z")

</div>

Well not really, as /share/Download/nzbToMedia originally had all the config files for setting up processing for SABnzbd, and now there are just two symlinks: one to /share/MD0\_DATA/.qpkg/nzbToMedia and one to /share/MD0\_DATA/.qpkg/nzbToMedia/repo-cache.

I’m wondering if I should just copy anything from the /repo-cache back as that was what it used to be.

And also, what is the /repo-cache folder, as it seems to have been created exactly when I ran one of the updates.  
Both /pip-cache and /repo-cache exists in all the other qpkgs I’ve installed through sherpa, and I’m not really sure what they are. If I have my configs directly in that folder, can I risk them getting overwritten next time I upgrade?

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 9:54pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/60 "2025-10-27T21:54:46Z")

</div>

This is a long-standing issue with nzbToMedia.

Its config and application files are all kept in the same location. Makes it hard to manage during `clean`, `upgrade`, etc… 😞

I’m presently working on a new nzbToMedia QPKG that will hopefully be a bit more stable, and handle upgrades better.

For your config, do what you need-to to get it running. The script files in `repo-cache` must be visible to SABnzbd as the “Scripts Folder”.

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 27, 2025, 10:01pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/61 "2025-10-27T22:01:11Z")

</div>

> [@FoP](#):
>
> Both /pip-cache and /repo-cache exists in all the other qpkgs I’ve installed through sherpa, and I’m not really sure what they are. If I have my configs directly in that folder, can I risk them getting overwritten next time I upgrade?

Those paths are used to store a local copy of the nzbToMedia repository files from GitHub, and Python modules from PyPI.

Everything in both paths is removed during an `upgrade` (and/or `clean`), so don’t store your own files and configs there.

In the new nzbToMedia, I’ll include a `config` path for that.

---

<div class="post-metadata">

**Author:** ![FoP](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@FoP](https://community.qnap.com/u/FoP)\
**Post date:** [October 27, 2025, 10:06pm UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/62 "2025-10-27T22:06:23Z")

</div>

OK, that makes sense then. I just couldn’t wrap my head around how the files had gone missing.

I’ve pointed SABnzbd to the /repo-cache folder, and in the categories tab, everything is now back to normal. I’ll make a backup of autoProcessMedia.cfg just in case everything is reset again later.

Thanks for the quick help 🙂

---

<div class="post-metadata">

**Author:** ![OneCD](https://community.qnap.com/user_avatar/community.qnap.com/onecd/32/156_2.png) [@OneCD](https://community.qnap.com/u/OneCD)\
**Post date:** [October 31, 2025, 12:27am UTC](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081/63 "2025-10-31T00:27:19Z")

</div>

More bad news (it never ends): the developers for **Lidarr** are now compiling their binaries to require libc 2.29 or later, which isn’t available in QTS. 😞

> **[Release 3.0.1.4866 · Lidarr/Lidarr](https://github.com/Lidarr/Lidarr/releases/tag/v3.0.1.4866)**
>
> BREAKING CHANGE: SQLite SourceGear Migration Compatibility
> SQLite has migrated to SourceGear.sqlite3, which requires GLIBC 2.29+ and is incompatible with older end-of-life systems including Debian ...

So, as of right now, the Lidarr package can’t be run. Existing Lidarr users will find their installation broken when Lidarr next updates, and Lidarr will be removed from sherpa support on the next stable QPKG release.

There are various versions available in the myQNAP repository if you’d like to continue using this application, but these require the purchase of a core QPKG from Stéphane.

You may be able to transfer your existing configs across to it. Don’t install the myQNAP version until you’ve manually backed up your configs though.

Your sherpa Lidarr should be manually uninstalled via your QTS App Center.

p.s. Does anyone know how to compile a later glibc and make it available to a specific application? If so, I could use your help. Please contact me. 🤓

[Previous page](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081.md?page=2)

[Next page](https://community.qnap.com/t/qpkg-sherpa-a-mini-package-manager-cli/1081.md?page=4)
